[thelist] iteratively comparing to an array with VBScript

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Fri Sep 10 17:33:55 CDT 2004

	You mean something like
For Each someSuchThing In TheWhatever

	While i < UBound(myArray)

		If myArray(i) = someSuchThing Then 
			' do the fun stuff
			i = UBound(myArray)
		End If
		i = i + 1


-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Joel D Canfield

Using VBScript. Retrieving a list of numbers which I then want to
compare, one at a time, to another list of numbers and act if there are
matches (iterating through a directory structure using FSO, looking for
directory names which match three-digit plan numbers.)

Can't get my head around this conceptually. Should be simple, but it's
not coming to me how to do it.


More information about the thelist mailing list