I can run the following:

Dim myAl, i, s
Set myAL =
DotNetFactory.CreateInstance("System.Collections.ArrayList")
myAL.Add  ("The" )
myAL.Add ("quick" )
myAL.Add ("brown" )
myAL.Add ("fox" )
myAL.Add ("jumps" )
myAL.Add ("over" )
myAL.Add ("the" )
myAL.Add ("lazy")
myAL.Add ("dog" )

s = ""
For i = 0 to myAL.count - 1
        s = s & " " & myAL.item(CInt(i))
'       msgbox myAL.item(CInt(i))
Next
msgbox s
' can use IndexOf to locate index without doing a sort
If myAL.contains("fox") Then
        print "found fox using contains and index = " & myAL.IndexOf("fox")
End If

But if "fox" is changed to "foX", foX is not found.  How do I call for
a CaseInsensitive comparison?  This might also be useful in the
dotNetFactory dictionary or hashTables.  I am slowly working my way
through the methods found at 
http://msdn.microsoft.com/en-us/library/system.array_methods
.

Thanks for any and all help,


Parke

-- 
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