Sign in to follow this  
Followers 0
Eigensheep

Getting parameter names

3 posts in this topic

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  
Followers 0