Well you have to get the numbers into a file somehow, either with a map editor, a sprite editor, a Mesh editor , text editor and so on. So for me, when I need a large group of numbers of my own design, to use in an AppGameKit project, in lets say a sprite editor for AppGameKit , so I can design shapes while out and about on my Sony 800 phone I have to put all these numbers into data statements in Purebasic, read them out , and then save them to a file , lets say the files named palette.dat
Then put that file in the AppGameKit project folder of my choosing, then load it, hope like hell I got all the number correct, then if not, click Purebasic's editor, hunt down the offending number, correct my error, re-save and so on. these numbers dont magically appear in a file and write themselves, they come from somewhere, be nice if that somewhere was inside the AppGameKit editor and would not even be that hard to implement. just a variation of the
dim map as integer=[0 1 2 3 4 5 6 7 8] .. but it could also seek the next numbers on the next editor line , just a matter of the compiler to loop till it hits the next comma or number on the next editor or source code line, then put those following numbers in the array starting at the end of the first group and so on..
just as I stated, thought it would be a nice built in feature, and trust me,. just because you dont hard code numbers into your programs, does not mean others do not.
As I also stated, look up code from all over the net and I'm sure you'll find loads of Data statements or Data blocks,
And if the new statement/command was a Data block as in my examples above, then the AppGameKit compiler would probably also put these numbers in ram for you, just like a regular
Dim Map As Integer=[0,1,4,5,78] does .
No need for even looping, you'd just print(map[2]) and get the number 4 as a result.
Either one would be good to have. either Read and Data statement lines or just a plain old fashion Data block spanning many lines.
Look I'm not hard to get along with, I'll take anyway there is to store large amounts of numbers inside my source code that isnt a string conversion method. whenever Paul gets the time. hell I'll even give him till tomorrow, I'm that generous , kidding...
But still be nice to have eventually, done ranting now, back to coding and drinkin a beer.
Peace out...
It's Bird! , It's Plane!, No its a rocket powered Squirrel holding some acorns and a smile!