Page 1 of 1

Parameters in customised code

Posted: Mon Jul 13, 2009 3:18 pm
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

Re: Parameters in customised code

Posted: Wed Jul 15, 2009 7:59 am
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

Re: Parameters in customised code

Posted: Wed Jul 15, 2009 8:54 am
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.