Re: [Gambas-user] ARRAYS - Filling with data

2012-01-27 Thread Emil Lenngren
Maybe you can use this to efficiently store and read the array from a file? http://gambasdoc.org/help/lang/datarep?v3 2012/1/27 Jussi Lahtinen > Just use IDE to create/move file to Data folder. > You can access to it like any file by referring to it's name, but without > path, example "myfile.tx

Re: [Gambas-user] ARRAYS - Filling with data

2012-01-27 Thread Jussi Lahtinen
Just use IDE to create/move file to Data folder. You can access to it like any file by referring to it's name, but without path, example "myfile.txt". If you use subfolders in Data, then use "myfolder/myfile.txt". Jussi On Fri, Jan 27, 2012 at 14:23, rogerHPH wrote: > > Thanks, the .Insert w

Re: [Gambas-user] ARRAYS - Filling with data

2012-01-27 Thread rogerHPH
Thanks, the .Insert works fine and I will investigate the /Data approach - can anyone offer an example ? -- View this message in context: http://old.nabble.com/Re%3A-ARRAYS---Filling-with-data-tp33208699p33213528.html Sent from the gambas-user mailing list archive at Nabble.com. --

Re: [Gambas-user] ARRAYS - Filling with data

2012-01-26 Thread Fabien Bodard
use an external file... 2012/1/26 Emil Lenngren : > There is currently no simple way to assign values to a multi-dimensional > array. > The only way is to assign one element at a time: > arr[0, 1] = 3 > arr[0, 2] = 4 > and so on. > You can get around this by having a Integer[][] instead, or simply

Re: [Gambas-user] ARRAYS - Filling with data

2012-01-26 Thread Emil Lenngren
There is currently no simple way to assign values to a multi-dimensional array. The only way is to assign one element at a time: arr[0, 1] = 3 arr[0, 2] = 4 and so on. You can get around this by having a Integer[][] instead, or simply use a single-dimensional array but do the position calculation y

Re: [Gambas-user] ARRAYS - Filling with data

2012-01-26 Thread Jussi Lahtinen
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, 1