Hello,
How can i capture first letter of any string using QTP.
For ex.. i want "j" in the below string
"john"
could any one explain me?
Is there any function for that?

Answer Posted / veeranki naveen goud

var = Ltrim (" Veeranki Naveen ")
'Ltrim is used to remove the left padded spaces
var2 = mid (var,1,1)
msgbox var2

OR

var = Trim (" John")
va2 = left(var,1)
msgbox var2



Regards,
Veeranki Naveen,
Noida.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are output values and why they are used ?

626


Describe the differences between functions and actions in UFT?

612


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2801


Key word driven framework

1686


How to release all resources file from the QTP?

1055






What are the key elements available in test result window?

626


What will be happen if i load object repository at run time, but it has already associated.

1260


If object is not recognized by qtp but the object is standard object what is your approach?

592


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1389


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1677


Can any suggest me what is exposure testing?

1380


What are the technologies supported by qtp?

567


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1478


How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

1722


Can we run multiple QTP scripts one after the other without manual intervention? How?

599