Page 1 of 1

How can I use 2d arrays?

Posted: Thu Feb 18, 2010 1:09 pm
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.

Re: How can I use 2d arrays?

Posted: Thu Feb 18, 2010 1:57 pm
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.

Re: How can I use 2d arrays?

Posted: Thu Feb 18, 2010 3:43 pm
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?