Page 1 of 1

Copying variables with macros

Posted: Thu Oct 20, 2022 9:13 pm
by WingNut
Might already be available but anyway. I've some programs which use portions of other programs which are 90% reusable but may need a few tweaks so its nice to be able to copy a macro from one program project to another. What would be nice is if copying a macro it also copies the relevant variables as well, prompting if the variable already exists in the recipient program and the option to change its name and which would transfer to all the occurrences of it.
Hope this makes sense
N

Re: Copying variables with macros

Posted: Thu Oct 20, 2022 11:14 pm
by medelec35
Hello WingNut.
Yes, this is already a function of Flowcode.
Select User Macros ribbon then select Export Macro
You can then select which macros you want to export, which will include all the local & global variables.
When it comes to importing macros, you can use the Import Macros that's within the same User Macros ribbon.

Re: Copying variables with macros

Posted: Fri Oct 21, 2022 5:57 am
by WingNut
Thanks Martin. That will save me some time