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 are the data types in qtp?
Explain measuring transaction.
What is the standard timing delay for web based application in qtp?
Can we create a qtp test from qc?
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.
How do know the number of browsers opened?
Explain about Test Fusion Report of QTP?
Explain in brief about the quicktest professional (qtp) automation object model?
am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)
Explain different types of checkpoints?
How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
What is the recovery scenario in qtp?
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
Tell me about qtp?
What are the methods used in UFT to handle exceptions or run-time errors?