Determine the number of parameters of a function #660
Unanswered
DanielGerlach2
asked this question in
Q&A
Replies: 1 comment
-
Hi @DanielGerlach2, Unfortunately, we aren't aware of a simple and reliable way to retrieve the parameter count of a VBScript function. In theory, since VBScript objects implement Your best option might therefore be to track expected argument counts manually. Good luck! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a use case where I have instruction code that has "optional" parameters.
When executing the code so far, I had a way to determine how many parameters a function had, and accordingly, it was then called with exactly that number of parameters (or an empty string if necessary).
Unfortunately, I haven't yet found a way to determine the number of parameters in ClearScript.
Here is some sample code where I get the following error "Invalid object or property access":
How can I determine the number of parameters of a function?
Beta Was this translation helpful? Give feedback.
All reactions