get the order no from the following orderdetails
orderstring="ORD13456PNR"
eg:13456
Answer Posted / srikanth
Dim mystring, myLength
mystring = "ORD13456PNR"
myLength = Len(mystring)
For i = 1 To myLength
If Asc(Mid(mystring, i, 1)) <> 32 Then
If Asc(Mid(mystring, i, 1)) >= 48 And Asc(Mid(mystring, i, 1)) <= 57 Then
myNumber = myNumber & Mid(mystring, i, 1)
End If
Else
msgbox("no numeric")
End If
Next
msgbox(myNumber)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is ‘object spy’ and what is the function of object spy in qtp?
What is the use of an object spy tool in qtp?
What are the general steps involved in the data driven framework?
what is the difference between development and testing
What is expert view in qtp?
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
What is a recovery scenario?
what is description object?
which type of testing process are you following in ur company? how to recognize a qtp page?
Is any limitation to xml checkpoints?
Can any body please tell me the steps of keyword driven framework of QTP.
Describe function procedure in vbscript.
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
How to create Reusable and Multiple Actions?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.