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


Please Help Members By Posting Answers For Below Questions

What is meant by Output Value in UFT?

556


What is the use of an object spy tool in qtp?

553


Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.

6651


Which environments does qtp support?

668


terminal services client

1786






How to modify object property in qtp ?

555


What are the trigger events in qtp?

568


iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com

1390


Explain about business process component? types and usage?

1553


Explain how qtp identifies objects?

560


Explain the concept of object repository and how QTP recognizes objects?

544


How to open a new test using quicktest professional (qtp)?

524


What is the use of text output value in quicktest professional?

499


What is the parameterization? Give one example?

587


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1372