Duplicate variables, as with macros

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
Brendan
Posts: 66
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 2:12 pm
Has thanked: 51 times
Been thanked: 15 times

Flowcode v10 Duplicate variables, as with macros

Post by Brendan »

Hello team.

I'm in the process of creating a batch of additional new variables to accompany a number of previously-created associated variables.

I presently need to copy created variable names to save time manually entering the names of similar new variables, each created one-by-one with associated var type and default value fields. It would therefore be really useful to be able to duplicate variables in the drop-down, just as one can presently do with macros (i.e. duplicated with "...copy" at the end).

Many thanks,
Brendan

mnfisher
Valued Contributor
Posts: 1752
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 147 times
Been thanked: 816 times

Re: Duplicate variables, as with macros

Post by mnfisher »

Hi Brendan,

Take a look at using local variables - in each macro. then they will be copied / created as required and the danger of unpleasant side effects (due to using the wrong variable!) is minimised...

Martin

Steve-Matrix
Matrix Staff
Posts: 1685
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 239 times
Been thanked: 397 times

Re: Duplicate variables, as with macros

Post by Steve-Matrix »

Martin makes a good point and I would second using local variables where possible.

Also, I have added a rudimentary copy/paste for variables which should be available in the next core update of Flowcode v11.

Post Reply