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 are the methods used in UFT to handle exceptions or run-time errors?
How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application. plz explain in detailed or mail the sample code to malepatin@gmail.com
How many types of parameters are there in QTP and what are they?
Ehat is the descriptive programing in QTP?
how do u handle an object with out name in our application using QTP 9.2?
How the objecs properties are identified?Tell me in Hierarchical order?
They asked by using qtp recording writing scripting
i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me
hen do start automation testing after manual testing
Suppose Object name was changed in the application in the second build.I have just modified the name in the Object repository as changes in the Application. Is it possible to accure changes in the script accordingly? If so Suppose I am calling the script through function, Will the changes affect in the script(which is in the function)automatically? If not affected, tell me the solution,How to handle this. How should I change the object property name while using functions
Test cases for Traffic Signals
suppose take one row in a row 16 columns is there.in 16 columns 16 numbers is there.but i want to get each 3 column number.o/p :5 columns get in 16 columns means. so can anybody write this function? plz send if u know the answer.