Eigensheep Posted June 19, 2008 Share Posted June 19, 2008 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 More sharing options...
AdmiralAlkex Posted June 19, 2008 Share Posted June 19, 2008 That's not possible. You should use ByRef (search the helpfile for ByRef or Func) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
weaponx Posted June 19, 2008 Share Posted June 19, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now