Forum Moderators: open
If Session("var*") = "test" then '* being a wildcard
...
End If
Obviously this doesn't work so what might be a solution to this problem? Thanks in advance.
Dim myArray(9) ' 10 being the number of elements in this zero-based var
Dim myCounter
Dim myFlag
myCounter = 0
myFlag = False
' your code
Do Until myArray(myCounter) = "Keyword"
If myCounter = 10 Then ' Keyword not found but end of array
myFlag = True
Exit Do
End If
myCounter = myCounter+1
Loop
Dim x
For x = 1 to Session.Contents.Count
response.Write x & ": " & Session.Contents.Key(x) & " = " & Session.Contents.Item(x) & "<BR>"
Next
P.S. Not sure why this array (Session.Contents) doesn't start with the ordinal 0? Key(0) is empty?