Passing array's to macro's

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
Eric
Posts: 99
Joined: Tue Nov 06, 2007 11:04 pm
Been thanked: 1 time

Passing array's to macro's

Post 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

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: Passing array's to macro's

Post 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?

Post Reply