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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8440
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2412 times
Been thanked: 3450 times
Contact:

Integrating C with Flowcode

Postby medelec35 » Tue Apr 27, 2010 10:58 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Re: Integrating C with Flowcode

Postby Benj » Wed Apr 28, 2010 9:16 am

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.
These users thanked the author Benj for the post:
medelec35 (Fri Oct 22, 2010 11:40 am)
Rating: 5.26%
 

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8440
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2412 times
Been thanked: 3450 times
Contact:

Re: Integrating C with Flowcode

Postby medelec35 » Wed Apr 28, 2010 3:23 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.