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
How to modify the text checkpoint?
What are the methods of the TextStream object that are used for reading from a text file?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
Explain about Test Fusion Report of QTP?
What are the Test design techniques you uses in ur project?
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
What are the different types of checkpoints?
How to start recording using quicktest professional?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
What r the different filters in defect in quality center
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
Can we Test Welcome Screens and Process Images with QTP
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)
When Recovery scenario actually starts while testing the application?
What is a Patch in QTP?