I believe.. you want to try...
For Each Object - Set Array Value at (Object.num, 1) to Object.X
- Set Array Value at (Object.num, 2) to Object.Y
Your X values will be in the first row of the array, and your Y values will be in the second. Generally I think you don't want to try to store two values in one cell of an array, it gets unnecessarily messy.
You can assign each object an num instance variable to keep track of them, or use their IIDs if you don't mind their number changing.
Mistakes were made.