Hi,
I am using OutputCheckPoint for 2 webelements Bed:4 and
Bath:2 Full,1 partial in my result page and I am storing
the value in the data table.
I dont need the string Bed:4,I would like to get only the
no 4.
How can I get it?
Even though I highlight only 4,It is seleting the full
value "bed 4".
Same thing happend for second webelement Bath:2 Full,1
partial
I need only the No 2.
I used the following to split
MyArray = Split(UIBathResult, " ", -1, 1)
But it is giving the value
My Array(0)=Bath:2full,1Partial
I need the only the nos for further comparision.Any help?
Thanks
Uma
Answer / nath. t
Function returnNumber(str)
For i = 1 To Len(str)
num = Mid(str, i, 1)
If IsNumeric(num) Then
returnNumber = num
Exit Function
End If
Next
End Function
str1 = "Bed:4"
str2 = "Bath:2full, 1Partial"
str3 = "1Partial"
x = returnNumber(str2) 'You can send any string it will
find and return the first number in the String.
MsgBox x
| Is This Answer Correct ? | 0 Yes | 0 No |
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
Can we use Virtual Objects in Discriptive Programming?
how u will describe testing activities?
How to Start recording using QTP?
How can you write the scripts that operate on different objects depending on run-time information?
w is descriptive programming
What is the extension of script and object repositary files?
In qtp,how to interact tool & application build?
If a object property is changed in the application. where it should be updated in QTP... Pls anybody can give the answer.. Thanks in advance...
How to handle dynamic objects in quicktest professional (qtp)?
Explain how you can find the absolute value of the number in qtp?
explain keyword driven framework with banking domain?