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 / Dark Basic problem trying to save an array.

Author
Message
Brazos
22
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 31st May 2009 08:01
I have an array: pd(501,3). I type in my program: save array "Pocket", pd(501,3). I get an error message: "Runtime Error at line 38. Array name is not valid at line 38." What's going on here? What is the proper code line to save an array?
Brazos
22
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 31st May 2009 08:20
here is my code:

BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 31st May 2009 08:22
You only use the first category, so it would be:

save array "Pocket",pd(501)

You may also need an extension (if not it is still good to do so that you can figure out what it is at a glance). I usually use a .arr extension, which would make the code:

save array "Pocket.arr",pd(501)

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Brazos
22
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 31st May 2009 08:38
Waaaaaaaaahooo. That did it. Little things like that drive me crazy about DBC. Thanks a million, BN2 Productions
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 31st May 2009 12:40
No problem. Which was it, the extension or the shortened line (I am guessing it was that one)?

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Brazos
22
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 31st May 2009 15:41
shortened line....yes

Login to post a reply

Server time is: 2025-05-15 16:56:41
Your offset time is: 2025-05-15 16:56:41