The Macro Argument property provides an optional argument to the macro.
Property Type: Static
Default Value: null
Hierarchical Reference: ControlName.MacroArgument
The value or result of a rule, placed in the Macro Argument property, is passed into the special variable Current Macro Argument (see Info: Special Variables).
Using the Macro Argument property allows the same macro to be used, but with differing outcomes depending on when it is run.
Ensure the property is a static property (It will display the gray orb alongside the property name)
The default value of the static property can be changed by typing the required value directly into the property field:
Macro Argument Value (Static) | Result | Notes |
---|---|---|
1 | Will pass the value 1 into the special variable Current Macro Argument. |
A rule can also be built for this property by changing the type to dynamic.
See How To: Change A Static Property To A Dynamic Property.
Macro Argument Value (Dynamic) | Result | Notes |
---|---|---|
"Type A" | Will pass the text Type A into the special variable Current Macro Argument. | |
DWVariableTotal * QtyReturn | Will pass the result of DWVariableTotal multiplied by QtyReturninto the special variable Current Macro Argument. | The Macro Argument property is required to be dynamic to create the rule. |
Value set in Form Designer. Static properties can be made Dynamic by double clicking the gray radio button.