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 iteration? How it is related to Test Results in QTP
3 Answers Virinchi Technologies,
What is the basic concept of quicktest professional (qtp)?
How to find array size in qtp?
How to identify the child window. In my case while recording, When i open new window and give checkpoint for some control and when i run that script QTP give error like" can not identify the object" Is there any method or solution to handle child window issue Note: In my apllication i have to check child window of child window also ( multiple windows open )
Hi All, I need code for how to execute qtp scripts from excell sheet
I have given u a application.To automate it what are the things will u consider?
How to insert a check point to a image to check enable property in QTP?
How to build scripts that access data from external sources?
What are the different kinds of test steps?
Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.
in one page we have 100 links i have to click the 99th link how can i click the 99th link.
4 Answers GK Technologies, IBM,
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.