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

in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser

4 Answers   Verizon,


what are the utilities and drivers

0 Answers   Cap Gemini,


What is quick test pro? What is a quick test professional?

0 Answers  


How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

0 Answers  


How to make Non reusable actions into reusable action? is that feature available in QTP

2 Answers   Ordain Solutions,






Analyzing the checpoint results?

0 Answers  


What is keyword driven framework, what is "key" in It.

2 Answers   IBM,


what is batch testing?

1 Answers  


How to get all the objects count and objects names in webpage using QTP ?

6 Answers  


Does QTP support flat files? If yes what are those?

2 Answers  


Please explain the role of Regular expression in QTP

0 Answers  


Where you are storing your script?

0 Answers  


Categories