value = a; a = 3.14; i = 2; a[i] = 3; a[i + 1] = "hello"; a[a[i]] = a;
To add a new element to an array, simply assign a value to it:
a = 10;
a = 1; a = "this is element 10,000";
Once an element of an array has been defined, you can set its value to null or anything else, but there is no way to actually undefine that element, short of actually truncating the array, which (as we'll see later in the chapter) is possible in Navigator 3.0.
|Special Object Methods||Book Index||Multidimensional Arrays|