How u call functions in QTP Function to calculate the

length of characters in a word -

Answers were Sorted based on User's Feedback



How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / neeraj chauhan

Yes you were right, i did a mistake in passing arguments.
Now it will work correctly..

Dim Str
Str="We love Our India"

Strlength=len(Str)

msgbox Strlength

Is This Answer Correct ?    9 Yes 0 No

How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / neeraj chauhan

Dim Str
Str="We love Our India"

Strlength=len("Str")

msgbox Strlength

Is This Answer Correct ?    1 Yes 0 No

How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / billa

NNR,

Do not go so rude with Neeraj,after all Neeraj is only
helping us and if you know the right answer then before
pointing finger, post your answer also.

Billa

Is This Answer Correct ?    1 Yes 0 No

How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / sreeprasad

Function countChar(st)/*Vbscript Function

charLength = Length(st)

End Function

Assume above function countChar is written in VBscript, now

you are getting the text from the Application and calling

the Vbscript file and gets the length of the characters in

the word

Dim textValue

textValue= Browser("Browser Name").Page("Page Name").Frame

("mainFrame_5").WebElement("12").GetROProperty("innertext")

executefile "\*.*\countChar(textValue)" /*calling the

Vbscript file

textlength = charLength /*getting the text length

Is This Answer Correct ?    0 Yes 0 No

How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / nnr

hi neeraj chouhan,

Plz check it script before post
as per ur script it shows "3"
but it not a r8 ans

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is the difference between systemUtil and invoke method..?

5 Answers  


what are the limitations of smart identification in qtp 9.0

0 Answers  


how to know no.of mails in our g mail by using vb-script

0 Answers   HP, Thinking Hats,


if there is two login button in your page, how you know that this login button is correct for login .

2 Answers  


I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

0 Answers  






how to capture the run time values of web table.

3 Answers   CTS,


what is tool interface?

1 Answers   ITC Infotech,


How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)

1 Answers  


How many types of Test Plans are there...??

5 Answers  


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

0 Answers   Patni,


What is checkpoints for quicktest professional (qtp)?

0 Answers  


What is the limitation to XML Checkpoints?

0 Answers  


Categories