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

7×683 Posts
Default

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

Code:
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 offline   Reply With Quote