string parameter array error with v3.1

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

string parameter array error with v3.1

Post by Steve »

We've discovered a small bug as a result of the recent v3.1 update. If you have been using strings as parameters to functions, then you may get the following error when you compile the code:

Code: Select all

error: array with undefined or zero dimension
This is because Flowcode has "forgotten" how big your string is (it thinks it is zero characters long!). To fix this problem, do the following:

* show the macro and edit the macro details
* edit any string parameters and click ok - it should make the string have a "[20]" after it
* press ok

You may need to do this for local string variables as well.

This error should only occur if you have previously used string parameters in a previous version of Flowcode.

Post Reply