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



Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in th..

Answer / uday kumar_anem

str="john"
msgbox(left(str,1))

Is This Answer Correct ?    15 Yes 1 No

Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in th..

Answer / neeraj chauhan

Dim str, str1
str="john"
str1=mid (str, 1,1)
msgbox str1

Is This Answer Correct ?    9 Yes 4 No

Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in th..

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

Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in th..

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

Post New Answer

More QTP Interview Questions

How to call a function in QTP?Is there any method ? Thanks , PRASANNA

2 Answers  


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

0 Answers  


Does QTP is "Unicode" compatible?

4 Answers  


What are the steps involved in recovery scenario wizard?

0 Answers  


Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini

2 Answers   TCS,






how to capture tool tip in QTP and which check point is needed

2 Answers   Syntel,


What is the extension of 'Log file' in QTP

3 Answers  


WHAT IS PARAMITARIZATION?

8 Answers  


Hi,Every one,my name is RAHUL,aim wondering if any one got QTP software? If yes,can u plz knock on to gchinthakindhi@gmail/yahoo.com. THANK U.

2 Answers  


Can any one tell the different properties and values of differnt objects like Browser,Page,link,webedit,webcombobox,webradio botton,webcheckbox and web button.Because I am facing a lot of problems in interviews with Descriptive Programing.I never worked on web Application...Pls help any one as soon as possible....

2 Answers  


Where you get the run time data table?

0 Answers  


Mention the different actions types of qtp.

0 Answers  


Categories