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 to explain a claims and insurance project?
How u execute test cases in manual testing?
What is object spy in quicktest professional?
What are the various types of Actions in UFT?
We developed 100 descriptive programms and put in running, in the midle if any descriptive program is stucked with some error? what will happend weather it will execute the remaining prg's or it will terriminate ?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
How does QTP identify an object?
I want some banking domain projects where can i get this projects ( anybody can help me plz)
how do u import the test cases written in excel sheet to qtp? and how do u generate the script in qtp for the testcase in excel sheet? plzzzz do answer this question thanks in advance
What is the difference between "call" and "callclose"
In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain
What is the difference between Datadriven and Parameterization?