08-18-2010, 08:20 PM
Hi QTP Learner and Venkatesh,
I appreciate your responses, but what will happen if tomorrow he got (12345XXXX). Then it will break, so we have to make it very generic as below
In this way we can reduce the LOC and make it more generic.
Let me know if you have questions or need any more information.
I appreciate your responses, but what will happen if tomorrow he got (12345XXXX). Then it will break, so we have to make it very generic as below
Code:
InnerTextValue ="Search Results (9856742310)"
SearchResults = Split(Split(InnerTextValue,"(")(1),")")(0)
If SearchResults = "" Then
Msgbox "No Search results found."
Else
Msgbox SearchResults
End If
In this way we can reduce the LOC and make it more generic.
Let me know if you have questions or need any more information.
Thanks,
SUpputuri
SUpputuri