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 Professional Discussion / can anyone confirm me that this is a BUG? (annoying one)

Author
Message
Yuri
23
Years of Service
User Offline
Joined: 12th Jun 2003
Location: Italy
Posted: 20th Jul 2003 13:14
try this code:



this program exit at line 6.. i've tested on 3 pc's (all dbpro + 4.1 patch)

have some opinions?
CBMZone main administrator
http://www.cbmzone.com
haggisman
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 20th Jul 2003 13:24
If you remove empty array strng$(0) it will work fine.

project: light/obscurance mapper (85% done)
Eric T
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location: My location is where I am at this time.
Posted: 20th Jul 2003 13:26
yeah dat ain't no bug..just a human error

Opinions are like a$$holes, Everybody has one.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Jul 2003 13:37
The EMPTY ARRAY command does just what it says. Once it is run, your array will have no entries in it - the only way it is usable then, is to use the ARRAY INSERT... commands to expand it.

If you want to clear all entries in the array, either loop through the array and set each one to an empty string, use UNDIM and then DIM to recreate it, or use my array plug-in
Eric T
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location: My location is where I am at this time.
Posted: 20th Jul 2003 13:39
and thus another ad for a plugin...j/k

Opinions are like a$$holes, Everybody has one.
Yuri
23
Years of Service
User Offline
Joined: 12th Jun 2003
Location: Italy
Posted: 22nd Jul 2003 13:23
i think that empty array() was a command to clear the content of an array...

i've used a for-next to clear my array thx!



bye

CBMZone main administrator
http://www.cbmzone.com

Login to post a reply

Server time is: 2026-07-21 05:56:15
Your offset time is: 2026-07-21 05:56:15