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 / Using "exit prompt" command to siplay a variable

Author
Message
stevkay
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location:
Posted: 7th Oct 2003 14:39
I really need to know how to use the "Exit Prompt" command, to display a variable i already have calculated, after the program has finished.

Thanks for your help- the Dark Basic context help isn't really doing much for me.

K.

If you gaze into the abyss long enough, the abyss starts staring back.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 7th Oct 2003 14:44
Try this:



Hope I Helped...

If Quizz's Are Quizzical, Then What Are Test's?
Check my profile for a quick test of knowladge...
stevkay
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location:
Posted: 7th Oct 2003 15:07
hmm, i cant seem to get it to run properly- if my variabel anme was "avg", how would i edid the code to make it suitable? (also, would i put your snippet in the main loop, or before or after sync, or what?)
Thanks.

If you gaze into the abyss long enough, the abyss starts staring back.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 7th Oct 2003 15:29
well, your variable needs to be in string format, so if its a number put Str$(avg) instead of just avg...

and the Exit Prompt command can go anywhere as long as it's read before the program is ended, but i ercomend keeping it out of the main loop, unless its only being accessed at certain times...

um, for your variable the code would be:


Oh, and Exit Prompt only works when its an Executable, so dont expect it to work when just executing it from DB... you have to build the exe for it to work...

Hope I Helped...

If Quizz's Are Quizzical, Then What Are Test's?
Check my profile for a quick test of knowladge...

Login to post a reply

Server time is: 2025-05-20 17:24:52
Your offset time is: 2025-05-20 17:24:52