Hello,
Passing strings to a macro is not a problem in Flowcode.
However, passing an array is, because array's can have null bytes in it.
If you pass an array to a macro, the operation will succeed until it encounters a null byte. Thereafter the transfert stops.
This can lead to very hard to find bugs.
I refer to a previous post http://www.matrixmultimedia.com/mmforum ... %27s#p9337 were was stated that this would be solved in Flowcode V4. Unfortunatly it is not.
Is there an alternative method to pass arrays with null bytes to a macro ( except converting and re-converting the array to a string ), eventually in C-code?
Best regards,
Eric
Passing array's to macro's
Moderator: Benj
- 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: Passing array's to macro's
Hi Eric,
OK thanks for letting me know. I will look into this and see if there is a simple way around the problem.
Maybe you could use the array as a global array instead of passing it in between macros?
OK thanks for letting me know. I will look into this and see if there is a simple way around the problem.
Maybe you could use the array as a global array instead of passing it in between macros?
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