VBScript in Classic ASP
I'm working with a very strange version of VB ... he doesn't want me to tell you what it is, he wants to figure it out on his own.
In C #, I can easily hardcode an array ... not much in this VB.
I would like to create a hard coded array when calling a function ... but I am not sure about the syntax. This VB version cannot be found. It prevents you from declaring types. Does anyone here know how to do this? If yes, thanks!
FUNCTION HasInput(filters())
HasInput = False
FOR EACH table IN filters
FOR EACH key IN Request.Form
IF LEFT(key, LEN(table)) = table AND Request.Form(key) <> "" THEN
HasInput = TRUE
END IF
NEXT
NEXT
END FUNCTION
IF HasInput({"ih", "hdms"}) THEN
+3
source to share