Jump to content

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?

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...