Problem with array creation

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

Moderator: Benj

Post Reply
User avatar
Osta
Posts: 159
Joined: Tue Jul 05, 2016 9:42 am
Been thanked: 13 times
Contact:

Problem with array creation

Post by Osta »

Hello dears !!!
I can't create a two-dimensional array...
What am I doing wrong?
Attachments
Mass
Mass
MASS.jpg (56.98 KiB) Viewed 3125 times
Array
Array
Array.jpg (95.84 KiB) Viewed 3125 times

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: Problem with array creation

Post by Benj »

Hello,

The Array Length box should be used to enter a number e.g. 20 and you then click the Add Array Dimension button to add the dimension to the variable.

You would need to do this twice for a 2 dimensional array.

Once - MASS[20]
Twice - MASS[20][20]

As you're already familiar with the [x] notation you can simply add this to the variable name without having to mess about creating dimensions.

MASS[20][20]

User avatar
Osta
Posts: 159
Joined: Tue Jul 05, 2016 9:42 am
Been thanked: 13 times
Contact:

Re: Problem with array creation

Post by Osta »

Hello Benj !!!!
Thank you very much for your help..
You're always right, it's my fault. :D

User avatar
Osta
Posts: 159
Joined: Tue Jul 05, 2016 9:42 am
Been thanked: 13 times
Contact:

Re: Problem with array creation

Post by Osta »

I beg your pardon...
And assign a value just does not work?
Attachments
INIT.png
INIT
(21.03 KiB) Downloaded 1310 times

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: Problem with array creation

Post by Benj »

Hmm. Seems to be working for me.
Arrays.jpg
Arrays.jpg (79.31 KiB) Viewed 3119 times
ArrayTest.fcfx
(10.82 KiB) Downloaded 169 times
Could you elaborate more on what exactly isn't working.

User avatar
Osta
Posts: 159
Joined: Tue Jul 05, 2016 9:42 am
Been thanked: 13 times
Contact:

Re: Problem with array creation

Post by Osta »

I have an error
Attachments
BUG.jpg
BUG.jpg (62.48 KiB) Viewed 3118 times

User avatar
Osta
Posts: 159
Joined: Tue Jul 05, 2016 9:42 am
Been thanked: 13 times
Contact:

Re: Problem with array creation

Post by Osta »

I saw!!!!
It's size!!!
It's working!!!!
Hurray!!!
Benj thanks!!!!!!!

Post Reply