Home Search

DriveWorks Pro 22
Macro Argument

Send Feedback

Macro Argument

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.

To Change the Default Value

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:

  1. Click in the property field for Macro Argument property. 
  2. Type the required value directly into the property field.

Examples

Macro Argument Value (Static)ResultNotes
1Will 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)ResultNotes
"Type A"Will pass the text Type A into the special variable Current Macro Argument.
DWVariableTotal * QtyReturnWill 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.