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 / Simple docs for FUNCTIONs could have saved me 2 hours

Author
Message
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 31st Mar 2003 21:45
The following program compiles but does nothing except return to the editor when run:



It's not obvious from any of the docs on functions that you must write your the same program as such for it to work:



After all the outstanding bug-fixes have been handled, it'd be nice to have a doc-revamp and help avoid this situation for other new users of the language.
Xoid
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location:
Posted: 31st Mar 2003 22:27 Edited at: 31st Mar 2003 22:28
yeah, it's a pain

as you know, you must call your subroutines / functions below the main program, unless your using an include file to store your procedures / functions etc...

Do not anticipate the outcome of the engagement, let nature take it's course, and your tools will strike at the right moment - from "Tao of Jeet Kune Do" by Bruce Lee

Login to post a reply

Server time is: 2026-07-21 20:34:25
Your offset time is: 2026-07-21 20:34:25