Callbacks in Flowcode.

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
mnfisher
Valued Contributor
Posts: 1026
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 107 times
Been thanked: 532 times

Callbacks in Flowcode.

Post by mnfisher »

Callbacks don't seem to be implemented..

Define a property of type 'Macro Call' - and this can be assigned to any of the available macros in a program.

Unfortunately it doesn't get assigned within the program - and there doesn't seem to be a way to call the macro. E.g. macro_var(1); in a C block or (without the ;) in a calculation block..

Martin

Steve-Matrix
Matrix Staff
Posts: 1290
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 171 times
Been thanked: 289 times

Re: Callbacks in Flowcode.

Post by Steve-Matrix »

There is a built-in (aka "simulation") macro called "CallMacro". This will take the variable given by the "Macro Call" property.

mnfisher
Valued Contributor
Posts: 1026
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 107 times
Been thanked: 532 times

Re: Callbacks in Flowcode.

Post by mnfisher »

Thanks Steve,

Will experiment - or is it just simulation?

I did find an easy workaround :D

Martin

Steve-Matrix
Matrix Staff
Posts: 1290
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 171 times
Been thanked: 289 times

Re: Callbacks in Flowcode.

Post by Steve-Matrix »

Yes - this function is simulation-only.

Post Reply