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
Parameters in customised code
Moderator: Benj
- Dan81
- 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
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
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
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel