Page 1 of 1

Macro vs Function

Posted: Fri May 01, 2020 2:54 pm
by DeeJayOne
Hi everyone !

I'm a newbie with Flowcode and I have some trouble to make the difference between a macro and a function.
It seems that either a macro or either a function is called a MACRO in Flowcode.
I find this is not easy to distinguish them.

Re: Macro vs Function

Posted: Fri May 01, 2020 3:44 pm
by Benj
Hello,

What we call a macro in Flowcode is actually a function or a subroutine. We are aware the name is not quite right but changing it would be a fairly big change, not just to the product but also to all the surrounding documentation.

Anyway a "macro" is inside your flowcode project in the form of a flowchart with a start and end. Even the Main function you get by default when starting a project is a macro.

A "component macro" is subtely different as this is provided by a component. It's basically the same thing but specific to a component you have added to one of the panels.

The project explorer window is a great means of viewing and using all your macros and component macros by using the Macros and Components tabs at the top of the window. You can drag the functions from here directly onto the flowchart window.