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 / Subroutines

Author
Message
Mordax
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 9th Jun 2004 03:03
I notice that use of true subroutines is impossible in Dark Basic, and that I am limited to the GOSUB statement

Honestly I dont realy mind, haveing all of my variables on hand all of the time makes sense, however thinking ahead when I have a heck load of these things its going to be difficult to search through all of the code to find the one I want to edit

Is there any way to bring up a list of the lables in my program and quickly go one of them by pressing a button, or a similar easy system, if so where?

Logic is supreme - Live by it
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th Jun 2004 03:08
whats wrong with functions?

"eureka" - Archimedes
Mordax
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 9th Jun 2004 03:09
ok, I didnt know they were there, there isnt a menu command for them

Where are they?

Logic is supreme - Live by it
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th Jun 2004 11:00
FUNCTION name(parameter1 as type, parameter2 as type, ....)

ENDFUNCTION

"eureka" - Archimedes
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 9th Jun 2004 12:50
Quote: "Is there any way to bring up a list of the lables in my program and quickly go one of them by pressing a button, or a similar easy system, if so where?"


Look for DarkEdit and download it. It can list your subs and functions, and it's syntax highlighted.

Mordax
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 9th Jun 2004 14:34
oh so Functions sit in the same code window as well, meaning I still have to scroll through everything, well that makes sense

Il look for this Dark Edit I guess

Logic is supreme - Live by it
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Jun 2004 15:56
With Darkedit, Blue etc, you can create your code in include files, and have each one in a separate window.

BatVink
http://facepaint.me.uk/catalog/default.php AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply

Login to post a reply

Server time is: 2025-05-25 03:57:49
Your offset time is: 2025-05-25 03:57:49