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 / Errr.... DIM problems?

Author
Message
Dragon of Logic
22
Years of Service
User Offline
Joined: 10th Sep 2003
Location:
Posted: 10th Sep 2003 22:58
I downloaded the trial version for DBPro, and began coding a simple project. The very first line I have declared an array as follows:

dim offp$(18)

I then declared each element of the array to their proper string values.

I then added a few print statements to write a welcome message up on the screen, then I ran the program to see if all was well so far.

I never saw my welcome message. The screen displayed the DB logo and looked like it was about to run, but then it immediately closed again.

I decided to "run in step-through mode" and got the following error message:

Could not understand command at line 1.

Line 1 is the DIM statement I wrote above, which certainly appears to be correct. Can anyone help?
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 10th Sep 2003 22:59
we need to see your code mate otherwise we can't help


Dragon of Logic
22
Years of Service
User Offline
Joined: 10th Sep 2003
Location:
Posted: 10th Sep 2003 23:02
Ooops... heh... It's quite basic... Here ya go.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 10th Sep 2003 23:06
If that code is it, then I'm not surprised you didn't see anything.

Two problems with your code :

A) You need a SYNC command
B) You need something to halt the program.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Dragon of Logic
22
Years of Service
User Offline
Joined: 10th Sep 2003
Location:
Posted: 10th Sep 2003 23:18
Ahhh, ok. I guess I got confused because in DB (classic) it didn't require those commands. I also got confused because of the error message that it gave me when I executed it by step.

Thanks for your help.
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 11th Sep 2003 03:13
DB classic certainly should require those commands . In Classic and Pro both, the code simply runs to end the finishes because it's done everything you've told it too.

--Mouse: Famous (Avatarless) Fighting Furball
Read It: http://www.angryflower.com/itsits.gif
Learn It: http://www.angryflower.com/bobsqu.gif
Dragon of Logic
22
Years of Service
User Offline
Joined: 10th Sep 2003
Location:
Posted: 11th Sep 2003 18:14
Ok, allow me to slap myself...
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 11th Sep 2003 18:38
Okay...


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester

Login to post a reply

Server time is: 2026-07-25 12:40:30
Your offset time is: 2026-07-25 12:40:30