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
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
What are the types of object repository?
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
Explain the types of object repositorys in qtp?
How to find Operating system information using QTP script?
i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com
what the difference between shared repository and per action repository?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
What are the properties you would use for identifying a browser and page when using descriptive programming?
i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script
How we can import data from database?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?
how to do the batch testing in test director using manual testing procedure?
Explain the qtp test phases.
what is the difference btn risks & Therads in the Test plan documentation?