Parameters in vbscript function - Forum

Forum Navigation
You need to log in to create posts and topics.

Parameters in vbscript function

There is some limit to the number of parameters that can be assigned?.
Thanks

@rasl

From the help file ...

https://winhelp.visualneo.com/FunctionLibrary.html

... where it says ...

An advanced function can accept up to nine parameters, allowing information to be passed from anywhere in the publication.

... if you need more, you can ...

a) pass multiple pieces of (text) values in a single parameter, separated by something like ::: or ^^^ ... and then parse them inside the function

b) do a bunch of SetVar commands immediately before the Call ... and then use nbGetVar and nbSetVar within your function

 

Thanks @gaev