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 to file

Author
Message
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 13th Feb 2006 19:50
I have been trying to save the following array to file but an array saying "Array name is invalid" appears at runtime:


I shall be very grateful for help on this matter.

Thank-you,
HWT

Hello World Tommorrow
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 13th Feb 2006 21:23
I can actually get it to compile here, but I it may be this line that's the problem:


See the index number of the array is ignored in this command, but you must still provide a number... So it may should look like this:


Hope that helps

-The Nerd

Free Particle Engine for DarkBasic Pro:
http://forum.thegamecreators.com/?m=forum_view&t=60141&b=5
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 14th Feb 2006 00:49 Edited at: 14th Feb 2006 00:51
Thanks for the reply. That solved the problem.

But just for knowledge sake, why is the index number of the array is ignored in the command
and what does
do? Does it save all of the dimensions or something like that?

Thanks again

Hello World Tommorrow
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 14th Feb 2006 01:07
Quote: "But just for knowledge sake, why is the index number of the array is ignored"


heh... That's a good question... I actually don't know that.

Quote: "and what does "a(0)" Does it save all of the dimensions or something like that?
"


Correct It will save the whole array.

-The Nerd

Free Particle Engine for DarkBasic Pro:
http://forum.thegamecreators.com/?m=forum_view&t=60141&b=5
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 14th Feb 2006 01:12 Edited at: 14th Feb 2006 01:13
Thanks again. Man you're fast!

Hello World Tommorrow
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 14th Feb 2006 01:15
Quote: "Thanks again"


No problem

-The Nerd

Free Particle Engine for DarkBasic Pro:
http://forum.thegamecreators.com/?m=forum_view&t=60141&b=5

Login to post a reply

Server time is: 2025-05-23 14:59:45
Your offset time is: 2025-05-23 14:59:45