Parameters in customised code

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
User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Parameters in customised code

Post by Dan81 »

Hello

I'm trying to move customised code (DMX Master) from Flowcode3 to Flowcode4.
One of my functions needs 9 parameters but I can only declare 6.

Is there a way to add the other 3.


Thank you

Daniel

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: Parameters in customised code

Post by Dan81 »

I've forgotten to specify that I use RS232_Component and that I create a new macro in the component properties.
I do not modify "RS232.c"
If the number of parameters could be raised to 10 (like local variables) that would be very nice.

Thank you


Daniel

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: Parameters in customised code

Post by Benj »

Hello Daniel

If you need 10 parameters for your macro then you can define a single parameter as param[10] and then reference in your program by using macro.param[0] to macro.param[9].

Hope this helps.

Post Reply