How would I create an array with an undefined set of elements, and add each computer's name to it within the first For Next control?

For example:

If I used "obj.CN" the script will return an unadorned name, "Computer1".
I would like to create an array and add each computer name as the next element. In java you could do something like this:

//=====JAVA=================
for (int i = 0; i < a.length; i++) { //add user data to array (currently 8 elements)
String strA = keybd.readLine();
a[i] = Integer.parseInt(strA);
}

This adds each piece of user data into the array:

+---+---+---+---+---+---+---+---+
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
+---+---+---+---+---+---+---+---+

We start at idx 0 and continue adding elements into the array... then you can simple parse the output:

System.out.println("SORTED ARRAY VALUES:");
for (int i = 0; i < a.length; i++) {
System.out.println("a["+i+"] = " + a[i]);
}

//=====END JAVA=================

Is there a way to do this in Kixtart? Perhaps using the Ubound Function ?