VBScript: Function parameter list too long?
in VBScript, I've got a function like:
Function InsertPerson(FirstName, LastName, Street1, Street2, City, State, Zip, x, y, z, a, b, c, d, e)
When I try to compile this function, I get an "Identifier Expected" error. However, if I shorten the list of parameters, it works fine.
Is there such a thing as TOO long a list of parameters?
I thought vb开发者_如何学Pythonscript doesnt care how long a line goes..
Is there a way to break my parameters list into 2 lines?
I tried using an underscore, but to no avail.
Ok... It turns out that the length of the parameter list was not the issue. the Issue was that one of my parameters was called "Type" and I guess that's a reserved word in VBScript. Of course, textpad doesn't indicate to me at all...
Thanks anyways!
精彩评论