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

In qtp, explain what is crypt object

0 Answers  


The string is like POWER STAR PAVAN , write a script for this how to findout the number of "A" in the string ?

7 Answers   TCS,


Syntact for how to call one script from another? and Syntax to call one "Action" in another?

1 Answers  


How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)

6 Answers  


Can we Script any test case with out having Object repository? or Using Object Repository is a must

3 Answers   Crea,






What are "Ordinal Identifiers" and where it is used in QTP. AS FAR AS i KNOW, its is used to identify the object. but i want clarity regarding this.

2 Answers  


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

0 Answers  


What are the types of data tables in qtp?

0 Answers  


What is the syntax to call one script from another?

0 Answers  


How to create Userdefined Function.Please write the steps ans also provide example where exatcly we use it.

1 Answers   HP,


in a web table , i want you to click a particular object inside cell

2 Answers  


how to convert 100 into hundred repees only and viceversa

0 Answers  


Categories