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 Posted / 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 |
Post New Answer View All Answers
How many add-ins comes by default with qtp?
In qtp, explain what is crypt object
We stored into the objects OR and then write the scripting
What is quicktest professional window?
if anyone has idea of the interview procedure in covansys, plz send me a mail?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
Explain more about the Test Fusion Report of QTP?
How you calling actions in qtp?
can i compare two databases using QTP ?
What are the different types of action?
If I change the object name in one action will it be updated in all the actions? Or not?
Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?
How to modify object property in qtp ?
What do you mean by iteration?
Describe how Smart Identification is used