I'm wondering what the maximum allowed length of a function name in Classic ASP (VBScript) is.
The following fails with identifier too long @ 256 characters
for i = 1 to 1024
execute "function " & string (i, "X") & ": end function"
WScript.echo i
next
I think it is 255, but you should not abuse it :)
From the MSDN reference for Function
:
name
Name of the Function; follows standard variable naming conventions.
And from the MSDN reference for Variables:
[...] A variable name:
- Must begin with an alphabetic character.
- Cannot contain an embedded period.
- Must not exceed 255 characters.
- Must be unique in the scope in which it is declared.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With