Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Saving multi-dimensional arrays

Author
Message
JSCskycap
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Townsend, MA, USA
Posted: 15th Mar 2004 00:31
I'm trying to use the SAVE ARRAY command to save an array like this:
Arrayname(A,B,C,D) and it just doesn't work.

I could extract the data I need and place it into a single array, but this would take many files. Is there another way around this?

Any help is appreciated - thanks!

John
The Jackal
21
Years of Service
User Offline
Joined: 12th Mar 2004
Location:
Posted: 15th Mar 2004 13:24
actually while we are on the subject, i know it sounds like a dopey question but what does the save array command actually do ?

Now this is the law of the jungle As old and true as the sky
And the wolf that shall keep if may prosper
But the wolf that shall break it must die.
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 15th Mar 2004 19:23 Edited at: 15th Mar 2004 19:24
why don't you just do:


DragnBreth
of
Dragael Software
JSCskycap
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Townsend, MA, USA
Posted: 16th Mar 2004 04:17
Thanks DragonBreth! I came up with the same thing about an hour after I posted the question! (DUH!)

By the way, Jackal, the save array command WILL save a straight, single dimension array, like Airport(A). It just takes all the info in the array and saves it to an external file to be recalled later. It's pretty useful, unless your using multi-dimensionals like I am - then it's useless.

Login to post a reply

Server time is: 2025-05-22 22:00:28
Your offset time is: 2025-05-22 22:00:28