Creating a new Macro
Select the New option from the Macro Menu or press Ctrl+M to create a new macro.
The Macro dialog will appear with the following sections for filling in information, and adding options:
Name
Enter a name for the macro. If the name that you enter for the new macro already exists, then Flowcode will prompt you for a different name.
Description
Enter a description of the macro and its functions.
Return type
Specify the return type, or "No return variable" if the macro does not return a value.
Parameters
Adds a list of parameters that are required to be supplied to the macro.
Set the Name and type of the parameters.
parameters can be added, edited or deleted.
Local Variables
Adds a list of variables that are required to be used by the macro.
This sets them to be macro specific so that similarly named variables in other macros do not accidentally modify the ones used in this particular macro.
Set the Name and type of the parameters.
parameters can be added, edited or deleted.
Local variables uses a similar dialog to that of the Parameters dialog.
Private Flag
When creating a new macro for a component using the customized code feature you will be given a tick box allowing the macro to be private. If the macro is set to be private then the macro will not appear in the main Flowcode component macro list. This is useful for creating invisible helper functions such as the LCD RawSend function.