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 |
. Types of properties that Quick Test learns while recording?
1.can we parameterise object repository?how we can do it? 2.there is a name "mallikharjun".i want to get the vowels in it through VBSCRIPT?
QTP Testing Process?
list me out the shortcutkeys for some functionlities in the qtp for example to record ,to run ... etc
How to import a test case present in ".xls" file to TD under a Test set?
How to track the execution time?
Will QTP Support Japanese Language?
3 Answers Cap Gemini, Infosys,
Why you are Using Descriptive programming instead of Object Repository?
How to handle Java tree in QTP?
I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...
how can i use text check point in descriptive programming. or else is there any way to compare the text in the application and the text in data table.
How to find the number the number of Links, Brolken Links in a webpage?