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
What are the different types of recording modes?
How can we conduct U-I Testing by using QTP??????
how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
Define Environment Variable in UFT and its uses?
How will you handle java tree in qtp?
Where we use data driver in qtp?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
Explain the differences between table and db checkpoints?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Explain advantages and disadvantages kdf?
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
Dis advantages of XML checkpoint ?
What is a checkpoint? How many check points are there in qtp?
How you create new action in qtp?