<< BACK

Above the body tag, I've created an array of records (objects). Below, I'm printing out all records in the array.

At the bottom, I'm printing out "aMacro[imcSingleLineUn3]", which is equal to aMacro[4]. Using an explicit variable name (imcSingleLineUn3) to reference the array element (instead of the number "4") gives the an easy way to reference a specific object, without having to keep track of which number element it actually is.

When creating the array above, I'm numbering each element with iArrayIndex++, instead of hard-coding numbers. This way I can move around/add/delete elements without having to renumber these indexes each time.