Difference between revisions of "Creating a New Macro"

From Flowcode Help
Jump to navigationJump to search
Line 5: Line 5:
 
The Macro dialog will appear with the following sections for filling in information, and adding options:
 
The Macro dialog will appear with the following sections for filling in information, and adding options:
  
 
+
[[File:Eg_Creating_a_New_Macro_01.png]]
'''img'''
 
  
  

Revision as of 12:28, 30 May 2013

<sidebar>Sidebar: What Is a Macro?</sidebar> Select the New option from the Macro Menu or press Ctrl+M to create a new macro. You can also create a new macro through the project explorer.


The Macro dialog will appear with the following sections for filling in information, and adding options:

File:Eg Creating a New Macro 01.png


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.


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.


Variables

Adds a list of variables that are required to be used by the macro.


Constants

Add, edit and delete constants which are only available to the selected macro.


Return type

Specify the return type, or "No return variable" if the macro does not return a value.


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.