How can I use 2d arrays?

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
hazic
Posts: 24
Joined: Tue Jan 05, 2010 8:59 am
Been thanked: 1 time
Contact:

How can I use 2d arrays?

Post by hazic »

I need to use 2d array (of chars or strings), does flowcode support that?
I tryied to define an array inside "c code" but when i try to approach the array in other flowcode functions flowcode dont recognize it.
What i'm trying to do is to build a menu for 4*16 LCD so i can scroll the menu according the buttons and the menu will change,
I'm using the LCD component to display strings and i want to send the display LCD component different strings that are stored in the array.

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: How can I use 2d arrays?

Post by Benj »

Hello Hazic

Unfortunalty Flowcode does not currently support 2d data arrays. You should however be able to pass a numeric parameter and then use a switch icon to specify a string based on the parameter.

hazic
Posts: 24
Joined: Tue Jan 05, 2010 8:59 am
Been thanked: 1 time
Contact:

Re: How can I use 2d arrays?

Post by hazic »

Just to be sue, you mean to change avariable according to the switches (for index) and to use decisions for each index number so that each decision will display a different stage of the menu?

Post Reply