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

Answer Posted / babu

The answers mentioned above will work only when we know the
format of the data entered.
But if you want to generalize the function.
We have to select each and every character from the string
and check when the character is a numberic of alphabet.
If it is numeric, then you can add it to a temporary
variable. So, we will get the value of the order number.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1953


How do you configure QTP AND Test director?

1678


In qtp, explain what is crypt object

804


The hybrid framework can be implemented for any application. Is it true?

772


How to customize qtp?

785


How QTP identify the system time that's changes every seconds?

785


How many lines of code in each script of QTP?

4217


What is action split and the purpose of using this in qtp?

729


What phases are involved in testing an application in qtp?

739


Can any one send me the QTP Basic Coding Samples?

1813


Explain how you can delete excel file in qtp?

792


What test cases can you automate using QTP?

840


Without using gui map editor we can recognize the application in winrunner ?

806


What are some test assets and related extensions of qtp?

758


How to attach a file to TD?

854