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 / DB Runtime

Author
Message
UFO
20
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 10th Jul 2006 01:07 Edited at: 10th Jul 2006 01:32
I am trying to use a programming editor (like Crimson Editor) instead of an IDE, so how would I get a saved dba file to be compiled? How do IDEs like DarkEdit do it.

Thanks

Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 10th Jul 2006 13:27 Edited at: 10th Jul 2006 13:27
We use execute file "DB.exe", "-CHAR$ filename", ""

On the place of CHAR$, you have to type c(compile), x(execute), b(build exe) or f(build final).

A few example:
If I had Program.dba file containing this:


then
execute file "DB.exe", "-c Program.dba", "" would compile the file (creates a .txt log. Writes Compilation succesful when succeeded)
execute file "DB.exe", "-x Program.dba", "" would execute the file. (Runs it)
execute file "DB.exe", "-b Program.dba", "" would build that file (makes an exe without the media.
execute file "DB.exe", "-f Program.dba", "" would build the final exe. With media.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
UFO
20
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 10th Jul 2006 16:36 Edited at: 10th Jul 2006 16:42
Wow! Thanks a lot!!!


Edit: It worked! Thanks again

Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 10th Jul 2006 17:16 Edited at: 10th Jul 2006 17:17
You're welcome...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
flock
20
Years of Service
User Offline
Joined: 10th Mar 2006
Location: Earth
Posted: 10th Jul 2006 18:45
Hey, UFO, is that blood around your avatar's mouth?

a.k.a. "flockhound"
UFO
20
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 10th Jul 2006 18:55
no, its yarn (from the Hitchiker's Guide to the Galaxy movie). At one point, they all turn into yarn people, and he throws up yarn...

Login to post a reply

Server time is: 2026-07-06 18:35:43
Your offset time is: 2026-07-06 18:35:43