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
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
after click on compose mail how can we attached a file in qtp with vbscript code
What is the default object synchronization timeout in qtp?
What are the differences between qtp and winrunner?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
How to use Environment parameterization? Explain with an example.
On what document base Descriptive programming is written if build is not yet ready ?
Explain the checkpoint in qtp?
Is it possible to change the property value at runtime? How it is possible?
in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?
What is keyword driven framework?
what are all the fileds present in object repository?
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
How to record application running on the Virtual machine?
How you will rate urself in QTP in the range of 0 to 5