This documentation is archived and is not being maintained.
MenuFunction.run Method [AX 2012]
Runs a MenuFunction object from code.
public void run([xArgs _args])
Run On
Called
Parameters
-
_args
- Type: xArgs Class
The arguments that are used to run the MenuFunction object; optional.
This function is used to run a MenuFunction object from code.
This example creates and runs a MenuFunction object.
// Create a MenuFunction object.
MenuFunction mf;
mf = new MenuFunction(FormStr(Address), MenuItemType::Display);
// Run it.
mf.run();