New Array Help

Im having problems with

var a = new Array();
or
var a = [“”];

and

a = something;
or
a.Push(something);
No matter what combo of array stuff I use when I run the second part of code it says
“Index out of Range”
of
“Split is not a member of Object”

Hi. can you be more specific? post your code here for more understanding.

Heres my file

2309062–155571–Master.js (3.31 KB)

If you are just trying to create an array, here are some examples…

int[ ] intArray = new int[5]; //creates int array of size 5
intArray[0] = 24;

a[ ] aArray = new a[5];
aArray[3] = new a();
//Note - a needs to be a class or something.

1 Like

You should also check out the learn section or the MSDN documentation.