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 |
What is diff. between ordinal identifier INDEX and Location?
Is it possible to run qtp scripts in Test Director(Scripts are uploaded in Test director)???and also how to see the test results in test director???
What is quick test pro?
How to call the userdefined functions to script? If i am stored 'add()' function in Library functions folder. i want to cal that function in my script.
Explain the concept of object repository & how QTP recognises objects?
in login module login button chage regularly(means login button change to submit button).What is the code for it.
What is error handled other than recovery scenario manager?
How to capture a window in QTP?
On a web application I want to select list item 5 from a dropdown list. but QTP identifying this object as winobject. Then how can we select list item 5 from that dropdown list.
I used Child objects to get the count of the no of weblist present in the page.now i need to select the item in the weblist..Please send me full code
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
What is Description Object?