My question is how do I make a world array?
Also, how do you make an array? Is this the right code?
x := Array new: 20 !
i want to know. I used to, but I forgot. I haven't done something like this in a while.
Offline
First off, do you really want to use an array? The only thing I find useful in arrays is the sort command. Besides that, I prefer OrderedCollections, since you can add and remove elements easily.
For an ordered collection, use
| t1 |
t1 _ #() asOrderedCollection.
If you really want an array, use
x := Array new: 20.
Last edited by Greenatic (2011-08-22 14:57:01)

Offline
Greenatic wrote:
First off, do you really want to use an array? The only thing I find useful in arrays is the sort command. Besides that, I prefer OrderedCollections, since you can add and remove elements easily.
For an ordered collection, use
| t1 |
t1 _ #() asOrderedCollection.
If you really want an array, use
x := Array new: 20.
Thanks. I can just make an array into a global variable. And yes, I really want arrays, I understand them better. I'm creating a code for WindowsExplorer fo a custum CYOB thingy of a bopper. Anyway, Thanks.
Offline