views:

191

answers:

1

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 vbscript 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.

A: 

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!

Shafique
Visual Studio supports syntax highlighting for VBScript (.vbs) files if you just open them in the editor, and will correctly highlight `Type` as a keyword.
Pavel Minaev