get the order no from the following orderdetails
orderstring="ORD13456PNR"
eg:13456

Answer Posted / babu

The answers mentioned above will work only when we know the
format of the data entered.
But if you want to generalize the function.
We have to select each and every character from the string
and check when the character is a numberic of alphabet.
If it is numeric, then you can add it to a temporary
variable. So, we will get the value of the order number.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

2419


How is a Step generator used in UFT?

651


Explain about the quicktest professional (qtp) automation object model?

562


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1569


What is the file extension of the code file in qtp?

559






what is actually contain test report? can anybody post the test report

1470


Which recording modes need more memory?

574


Explain the concept of how quicktest professional identifies object?

532


How many tabs are available to view your test in a test pane and what are they?

560


Shall we add Local Repository to shared object repository,if yes,how we add

5672


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

1763


What is ‘object spy’ and what is the function of object spy in qtp?

570


Key word driven framework

1682


Through array we can execute the testcase how ? give me example

1395


What is accessibility check point?

655