Copying variables with macros

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
WingNut
Posts: 254
http://meble-kuchenne.info.pl
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Copying variables with macros

Post 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

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: Copying variables with macros

Post 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.
Martin

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: Copying variables with macros

Post by WingNut »

Thanks Martin. That will save me some time

Post Reply