Array Containing.., > to Array

andrew_critchlow

New member
Joined
Nov 9, 2006
Messages
1
Programming Experience
Beginner
Does anyone know why this will not work? And how i could get aorund it?


For count = 1 To 1000
If Array(count).Contains("1 GBP") Then
MessageBox.Show("Found Text")
End If
Next



I basically have an array of values, i want to find which variables of the array contain "1 GBP" and with these put them into there own array?




many thanks to all who can help
 
First rename your variable to something other than the class Array, use 'myArray' for example. Then replace your use of Contains method with IndexOf method. The IndexOf method returns value -1 if not searchstring is found.
 
Back
Top