How to find the length of the string in qtp?



How to find the length of the string in qtp?..

Answer / Sumayya

In QTP, you can use the Len function to get the length of a string. Here's an example:nstrMyString = 'Hello World'nlngStringLength = Len(strMyString)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Tell me the difference between the Data Driven Frame work and Keyword Driven frame work?

3 Answers   Semantic Space,


How to pass a variable in Dos Command using QTP? Eg: Dim path1, path2 path1 = "C:\Test\sample1.doc" path2 = "C:\Test\sample2.doc" How can we pass these path1 and path2 inside the "copy" dos command? I tried like this. this is not working. oShell.run "cmd /K copy" &path1 &path2

1 Answers  


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1 Answers  


How to use regular expression in descriptive programming?

0 Answers  


How to run scripts 1,29,3,5,7,2 scripts using test batch runner in QTP.... Ie...I wanted to run scripts not in an order 1,2,3,4,5...like that How it is possible using test batch runner... I dont want hardcoded script

0 Answers   IBM,


Hi,EXCEL SHEET AND DATA TABLE . BOTH ARE SAME OR NOT?

3 Answers  


My Application is a client server application , but there is one functionality , when we click on one particular icon it launches web browser . When I am recording in QTP , By select approprait web add in also , it not able to record in web page , I am able to record till click on the icon. Please provide me how to over come this type of problem.

2 Answers  


What is API?

1 Answers  


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

1 Answers  


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1 Answers  


why was automation used in the project?

1 Answers   Google,


I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)

1 Answers  


Categories