get the order no from the following orderdetails
orderstring="ORD13456PNR"
eg:13456

Answer Posted / qtp

use instrrev or InStr and get the index position using the
search string as PNR
after that bye using the mid function we can get the order
number

var pos=instr(order string,"PNR")

string1=mid(orderstring,3,pos)

msgbox (string1)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning Work bench?

1770


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

1752


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1611


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1430


How can you handle exceptions in qtp?

540






hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

1936


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

563


How to check feasibility of the appliction?in automation testing?

1476


What does it mean when a check point is in red color? What do you do?

570


What is a data driven test in qtp?

593


What are the different properties of an web object

1432


What is the syntax for how to call one script from another?

567


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1527


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

1649


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1448