How to create multi-dimensional arrays as property

Hello

I need an multi-dimensional array that can be acessed anywhere in the code, i’m trying to create as a property but I did’nt find how to do it anywhere.

  • To create an one-dimensional array in a property you can just name it name(), but as far as i understand, you cant add dimensions after it’s already created.
  • I tried to name it name(,) but it keep returning syntaxe error.

Can somebody help me ?

Insert → Module → New Property.

Read: Arrays

Thank you for the reply.

Even after reading this page i didnt figure out what i have to name the property to turn it into an multi-dimensional array, english is not my first and i must be missing something, do you have some tip ?

I’ve never used these but it seems you need to know the array dimensions. Have you tried:

Var myArray(-1, -1, -1) as String

Edit: well - that seems to compile.

Thank you, it look like it worked

There is an example that said:
The following code of a 2-dimensional array…

Happy you get it working now.

PS: with google translate, you can (copy/paste) get the documentation in your country language.