Hello dears !!!
I can't create a two-dimensional array...
What am I doing wrong?
Problem with array creation
Moderator: Benj
Problem with array creation
- Attachments
-
- Mass
- MASS.jpg (56.98 KiB) Viewed 3125 times
-
- Array
- Array.jpg (95.84 KiB) Viewed 3125 times
- 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
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]
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]
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Problem with array creation
Hello Benj !!!!
Thank you very much for your help..
You're always right, it's my fault.
Thank you very much for your help..
You're always right, it's my fault.
Re: Problem with array creation
I beg your pardon...
And assign a value just does not work?
And assign a value just does not work?
- Attachments
-
- INIT.png
- INIT
- (21.03 KiB) Downloaded 1310 times
- 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
Hmm. Seems to be working for me.
Could you elaborate more on what exactly isn't working.
Could you elaborate more on what exactly isn't working.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Problem with array creation
I saw!!!!
It's size!!!
It's working!!!!
Hurray!!!
Benj thanks!!!!!!!
It's size!!!
It's working!!!!
Hurray!!!
Benj thanks!!!!!!!