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?

Answer Posted / neeraj chauhan

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

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if anyone has idea of the interview procedure in covansys, plz send me a mail?

1515


Explain the Different types of QTP test assets and their extensions?

590


When should I use smart identification?

589


How to use Environment parameterization? Explain with an example.

1465


Hoe can we do retesting using functions please give the code for it using login page

1553






Where we use data driver in qtp?

595


How to recognise the webelement and verifying that webelement is enabled?

1628


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

622


Can you write a script to check if the folder exists or not?

501


Where you get the run time data table?

571


ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS

1506


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

595


How can you identify the browser and its information using QTP script?

531


i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

3478


Explain the features of quick test pro(qtp)?

556