Put Trim function...or Lcase  
If Trim(Lcase(ItemFound)) = "abc" Then
           IFound = True
****************

End Function

On Saturday, June 11, 2016 at 3:29:16 AM UTC+2, [email protected] wrote:
>
> Hi
>
>
> I'm having a very hard time understanding why this code won't find my item 
> "abc" from the WinList.  ItemsCount is correct, allmyitems have the string 
> of "abc" in it, however when I loop through it GetItem(i) skips the "abc" 
> and goes to next item, and repeats few items until ItemsCount is done.
>
> help please
>
>
>     ItemsCount = Window("").WinObject("Items View").WinList("")
> .GetItemsCount()
>     allmyitems = Window("").WinObject("Items View").WinList("")
> .GetROProperty("all items")
>     
>     For i = 0 To ItemsCount - 1
>         ItemFound = Window("").WinObject("").WinList("").GetItem(i)
>         
>         If ItemFound = "abc" Then
>            IFound = True
>             Exit For
>         Else        
>             IFound = False
>         End If
>     Next
>
>
>
> thanks
>
>     
>

-- 
-- 
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 Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to