Difference between revisions of "Importing a Macro"

From Flowcode Help
Jump to navigationJump to search
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<sidebar>Sidebar: What Is a Macro?</sidebar>
+
To import a previously [[Exporting a Macro|exported macro]] into Flowcode, select 'Import' from the 'Macro' menu (Macro > Import...). Flowcode will ask you to choose the filename of the existing macro. Flowcode will then import the macro using the same macro name as when it was exported. If the macro name already exists then Flowcode will ask for a new name for the macro.
To import a previously exported macro into Flowcode, select Import from the Macro menu. Flowcode will ask you to choose the filename of the existing macro. Flowcode will then import the macro using the same macro name as when it was exported. If the macro name already exists then Flowcode will ask for a new name for the macro.
 
  
  
 
Any variables used in the macro will be added to those already in the main program allowing you to use those variables in other parts of your program.
 
Any variables used in the macro will be added to those already in the main program allowing you to use those variables in other parts of your program.
  
If any of the variables names already exist then a warning message will appear asking if you wish to proceed with the import.
+
If any of the variables names already exist then you will get a warning message.
  
If you proceed you will be asked if you wish rename the conflicting variables.
+
[[File:Variable_clash_warning.png]]
  
 +
If you select '''No''' you be asked to resolve the issues.
  
'''<img>''' [?]
+
If you select '''Yes''' ,all the variables with the same name will be automatically merged, so just Select OK.
<Still Relevant?>
 
  
Rename macro variable changes the macro name to the one in the text edit box.
+
'''Rename Macro Variable'''
  
Use existing variable treats the imported variable as being references to the already existing variable, keeping the same name.
+
Changes the macro name to the specified text in the edit box.

Latest revision as of 15:27, 15 March 2023

To import a previously exported macro into Flowcode, select 'Import' from the 'Macro' menu (Macro > Import...). Flowcode will ask you to choose the filename of the existing macro. Flowcode will then import the macro using the same macro name as when it was exported. If the macro name already exists then Flowcode will ask for a new name for the macro.


Any variables used in the macro will be added to those already in the main program allowing you to use those variables in other parts of your program.

If any of the variables names already exist then you will get a warning message.

Variable clash warning.png

If you select No you be asked to resolve the issues.

If you select Yes ,all the variables with the same name will be automatically merged, so just Select OK.

Rename Macro Variable

Changes the macro name to the specified text in the edit box.