Hi anish,

When i try to call this function from Action 2 which i created under Action
1 and i already associate this lib file .qfl into Action 1 but when i
execute Action one it stop at this Action 2 iteration which line call to
this below function from Action 2

I define this function like

SearchDropBox() into Action 2 but it told that it Object is not exist


Function SearchDropBox()
dim i,a
    With Browser("name:=Walmart.com: Save money. Live
better.").Page("title:=Walmart.com: Save money. Live
better.").WebList("name:=select","select type:=ComboBox Select","html
tag:=com.wm.module.305715.select.0")
  If .Exist(4) Then
   a =.getRoProperty("items count")

  For i=0 to a-1
  .Select "#"&i
Next
End If
End With
End Function

On Tue, 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
>
> can you look for me what i did mistake here

>
> Hope this helps...
>
> *
> Cheers,
>  a n i s h
>
> [QTP 
> Tutorial]<http://www.automationrepository.com/tutorials-for-qtp-beginners/>| 
> [VBScript
> Tutorial]<http://www.automationrepository.com/category/qtp-and-vbscript-tutorials/>|
>  [QTP
> Blogs] <http://www.automationrepository.com/qtp-blogs/>
>
> **
> [** Subscribe to Get New Posts in your Inbox 
> **]<http://feedburner.google.com/fb/a/mailverify?uri=automationrepository/feeds>
> *
> --
> Regards,
> Anish Pillai
> My QTP Blog <http://automationrepository.blogspot.com>
>
>  --
> 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