How u call functions in QTP Function to calculate the

length of characters in a wor

Answers were Sorted based on User's Feedback



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

Answer / alok

Please use the following steps:
str="QTP"
A=len(str)
msgbox A
o/p
3

Is This Answer Correct ?    4 Yes 0 No

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

Answer / dhanasekar

calculatelength("this is to test")

function calculatelength(string)
calculatelength = len(string)
End Function

Regards,
Dhanasekar S
http://testingideas.wordpress.com

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More QTP Interview Questions

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..

12 Answers   Wipro,


suppose im having a string wipro123xyz i need to get the value 123 only from the string today 123 will be in the middle from tommorow it will be changing to front or back how to get the no if it changes continously?

2 Answers   Wipro,


Hi, Can any one explain what is mean by Driver Script? is it AOM?

4 Answers   CTS,


How can you quit from Action.

2 Answers  


Hi Can u plz suggest who is the Best Faculty for Advanced QTP Scripting in Hyderabad ,plz suggest me..... or send me a replay to satheesh.goli@gmail.com, r make me a call 9866335752

1 Answers   AppLabs,






How the objecs properties are identified?Tell me in Hierarchical order?

5 Answers   IBM,


What is wrong in my code?

3 Answers  


what is the difference between function and subroutine ....here every one knows theoretically...here my QUESTION IS WHAT IS THE MEANING OF FUNCTION CAN RETURN A VALUE AND SUB CAN NOT RETURN A VALUE .....WHAT DOE'S IT MEAN FUNCTION CAN RETURN A VALUE HOW FUNCTION CAN AND SUB CAN'T ....GIVE A EXAMPLE FOR BOTH ....HOW IT CAN AND CAN NOT...HELP ANDY ONE....

1 Answers   HCL,


Hi! Using Descriptive Programming How do we get Parent object for an object. Say, i want to get a parent object for a "Link" in a web page. thanks

3 Answers  


how can you select random value for every iteration from a weblist

4 Answers   Microsoft,


what is a test strategy & what is the difference between test strategy & test plan?

5 Answers  


How to open any application during Scripting in QTP?

7 Answers   Celgene, IBM,


Categories