Best Interface for Large Array (Not Quite Urgent, but still important)
Ok, I need to do the following:
Read an array into a textbox/label (Figured out a long time ago)
Format the contents of a textbox into an array
Sounds simple. Use split() to put it right back into the array
Now my problems begin to arise:
The array is 2d, not 1d
And it has to be formatted a certain way
1 -1 1 -1
-1 1 -1 1
1 -1 1 -1
-1 1 -1 1
(I know it looks wierd, but it will be displayed with a monospace font in the program. The ultimate goal is for the ones to line up.)
A 1 or 0 has 1 space before, and one space after. A -1 has 1 space after. When using split() this results in blank entries.
Anyway, some code or some tips on how to code something that can format the raw text into an array. Email me: [email protected]
Btw: The array will have variable size, and the only numbers that it has to worry about are -1, 0 and 1.
Thank you for spending your time helping me with this.