Page 1 of 1

Passing array's to macro's

Posted: Mon May 31, 2010 6:55 pm
by Eric
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

Re: Passing array's to macro's

Posted: Mon Jun 07, 2010 10:53 am
by Benj
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?