Integrating C with Flowcode

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Integrating C with Flowcode

Post by medelec35 »

Hello.

If I have a C code icon with ccpr3l = FCV_CCPRL ;
Instead of using flowcodes variables manager, How Can I declare ccprl using c code Icon?
Is it the same format if placed in supplementary Code window?
I have read ages ago it can't be done. Is that still the case please.

My flowcode compiles if I use variable manager to declare ccprl , so I know the rest of my C code (which now includes semicolons :P ) code is correct.

Thank you
Martin

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: Integrating C with Flowcode

Post by Benj »

Hello Medelec,

Using the C code icon you can declare the variable like this.

char FCV_CCPRL;

or if you dont want to use the Flowcode formatting on the variable.

char ccprl;

YOu can either use in the supplementary code window to make the variable global or you can define it inside a function to make it local.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Integrating C with Flowcode

Post by medelec35 »

Thanks Ben.
I thought I tried that combination along with dozen others :p , but I must have been wrong since what you posted works great!
Martin

Post Reply