[thelist] ASP For Each...Next problem
Michael Robertson
mike at mikeemedia.com
Tue Jul 22 10:44:10 CDT 2003
I'm trying to loop through 2 arrays filled with dates to find out if any of
the dates in said arrays are the same. This is latest thing I've tried and
it seems like it should work but i get a type mismatch on the second For
each line.
For Each FormDate In ArrFormDate
For Each CurrDate In ArrCurrentDates(0,FormDate)
If ArrFormDate(FormDate) = ArrCurrentDates(0,CurrDate) Then
blnIsSame = True
End If
If blnIsSame = True Then
Exit For
End If
Next
Next
ArrCurrentDates is populated like so:
ArrCurrentDates = RS.GetRows()
ArrFormDate like:
strFormDate = Request.Form("Date")
ArrFormDate = Split(strFormDate,",")
Thanks
More information about the thelist
mailing list