How to create a 2 d array?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
nnnnff
Posts: 107
Joined: Tue Oct 04, 2011 8:55 am
Has thanked: 3 times
Been thanked: 6 times
Contact:

How to create a 2 d array?

Post by nnnnff »

How to create a 2 d array?
Such as the:s[12][12].help me.

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: How to create a 2 d array?

Post by brandonb »

How to create a 2 d array?
Such as the:s[12][12]
flowcode doesn't support these, but a 2d array is like a checker board which is an array of arrays, each row is an individual array, could do this with math and have one lut table or array of 144 and referance them with math like
if you wanted to find [2],[4] the code would be ....position = (12*row)+char
to find the 'Y' below it would be this in math (12*2)+4
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,Y,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
does that make sense, if i'm off on this one please correct me

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: How to create a 2 d array?

Post by medelec35 »

Hi nnnnff
This same topic was discussed here:
http://fwww.matrixmultimedia.com/mmforu ... 60&#p35960
Martin

Post Reply