Macro vs Function

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
DeeJayOne
Posts: 17
Joined: Thu Apr 30, 2020 7:43 pm
Has thanked: 15 times
Been thanked: 3 times

Macro vs Function

Post 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.
Last edited by DeeJayOne on Fri May 01, 2020 3:59 pm, edited 1 time in total.
Windows 10.0.18362.778
Flowcode v8.2.2.15 (2020-02-28)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Macro vs Function

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

Post Reply