Thread: vbscript help
View Single Post
Old 2008-11-12, 13:51   #15
axn's Avatar
Jun 2003

10010111010102 Posts

There is a faster trick than the above hash (only faster in a scripting language)

C = ",AMDUsers,ArsTechnica,...,XtremeSystems,XGrubbersKickAss,"
If InStr("," & arrMyTeamName(0) & ",", C) > 0 Then
End If
C should ideally be declared as a Const at the top of the program. Easy to use and maintain. Should be fast. (PS:- Check the documentation for the correct usage of InStr)
axn is online now   Reply With Quote