[Gambas-user] ARRAYS - Filling with data

Jussi Lahtinen jussi.lahtinen at ...626...
Thu Jan 26 17:43:24 CET 2012


For some reason this post didn't appear to my email, it's only visible in
nabble ( http://old.nabble.com/gambas-user-f3427.html ).
Anyone knows why?


And the answer to the post, perhaps this way:

DIM Walls AS NEW Integer[]

Walls.Insert([38, 150, 38, 80, 38, 80, 180, 80, 180, 80, 180, 150, 180,
150, 38, 150])
Walls.Insert([38, 112, 75, 112, 75, 112, 75, 80, 150, 80, 150, 107, 130,
80, 130, 107])
Walls.Insert([108, 80, 108, 92, 90, 92, 110, 92, 110, 92, 110, 107, 110,
107, 180, 107])
Walls.Insert([90, 80, 90, 92, 90, 112, 90, 150, 120, 150, 120, 118, 120,
118, 145, 118])
Walls.Insert([145, 150, 145, 115, 145, 115, 180, 115])

http://gambasdoc.org/help/comp/gb/integer%5B%5D/insert

For 2D arrays, I don't know!

Why you don't want to load the data from file?
The file can be put inside the exec (/Data), so you don't have create
separated file nor you have to extract it from there.


Jussi



More information about the User mailing list