Nope realtimesdata is not a string , but a  range like any value between 10 to 
100

Sent from my iPhone

On Apr 24, 2012, at 10:07 AM, Anish Pillai <[email protected]> wrote:

> Hi,
> 
> Is this RealtimeData a string? like "10 to 100"? If that is a case then Instr 
> will not work. One way to accomplish this is to find out the upper bound and 
> lower bound first. and then compare with the value.
> 
> Eg - 
> 
> RealtimeData = "100 to 1000"
> arrTemp = Split(RealtimeData, " to " )
> iLwrBound = CInt(arrTemp(0))
> iUprBound = CInt(arrTemp(1))
> 
> If UserInputData >= iLwrBound and UserInputData  <= iUprBound Then
>   msgbox "value in range"
> Else
>   msgbox "value not in range"
> End If
> 
> 
> Hope this helps...
> 
> Cheers,
> a n i s h
> 
> [QTP Tutorial] | [VBScript Tutorial] | [QTP Blogs]
> 
> [** Subscribe to Get New Posts in your Inbox **]
> 
> -- 
> Regards,
> Anish Pillai
> My QTP Blog
> 
> -- 
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to