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

suppose i give valid user id and password to open an web base application on qtp.how qtp will know itis a valid user id and password

3 Answers  


How to analyzing Test Results using QTP?

1 Answers  


How can we fill data in a text box without recording using object spy. Can you please provide the steps...

1 Answers   Hotel Jobs, TCS,


What is Automation frame work.How we will prepare in real time.

9 Answers   AppLabs,


Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the script execution without clicking on the OK button manually.

6 Answers  


How i can change shared repository to per test repository in qtp

1 Answers  


How do u fetch data from a database ?

2 Answers  


Have you used xml check point in your project?

0 Answers  


How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ENGINEER " Please send me the answer

3 Answers  


What are the different types of action?

0 Answers  


Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)

2 Answers  


Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?

4 Answers  


Categories