Jump to content
Sign in to follow this  

Getting parameter names

Recommended Posts


I'm not really sure this is possible but is there a way of getting the names of parameters used in user functions. For example, if I had the code:

Func smallest($number,$maximum)

Is there a way of retrieving the values "$number" and "$maximum" (given the function name) without creating a "lookup"-type function?

Share this post

Link to post
Share on other sites

The only thing AutoIt offers is @NumParams.

For comparison, PHP offers the following:

func_num_args - Returns the number of arguments passed to the function

func_get_arg Return an item from the argument list

func_get_args Returns an array comprising a function's argument list

get_defined_functions Returns an array of all defined functions

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.