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?
Answers were Sorted based on User's Feedback
Answer / neeraj chauhan
Dim str, str1
str="john"
str1=mid (str, 1,1)
msgbox str1
Is This Answer Correct ? | 9 Yes | 4 No |
Answer / 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 |
Answer / naveen
This is simple and easy one when compared to second
str="john"
msgbox(left(str,1))
Is This Answer Correct ? | 0 Yes | 0 No |
How good are you in writing VBscript code for your application? Can you completely write VBscrit for your project with out using recording mode in QTP?
when will you do debug your script? and explain that process?
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
Did you use flatfiles in your projects?At what situation you used it?How can you upload flatfiles?
what type of run time errors you get while you ar edoing rpg program?
How to handle run time errors?
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
what is the mail use of frame work(with detail). architecture for keyword driven frame work
How is test case write?
How to connect to data base?
what is the difference between link and hyperlink?
how many wayes we do the parameterization?