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 / loading codes from a diffrent file

Author
Message
avenger 999
19
Years of Service
User Offline
Joined: 28th May 2005
Location:
Posted: 30th Jul 2005 19:08
is it possable to in anyway possable to seperate parts of the codes in any way other then just trying to keep it apart with rem like is there anyway to have part of the code in a txt file and then when you run the program and use the codes from the txt file at the point when you tell it to?

batman: forgotten sins
http://go.hostlite.co.uk/fanfilms/forgotten/
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 30th Jul 2005 19:36
CodeKEEPER, TAPEing code is one way.

Another is to use #includes, but you only use this to include functions from another file. So:

main.dba
Quote: "
#include "CubeMake.dba"
`...blah blah bla......
F1CubeMake()
"


CubeMake.dba
Quote: "
function F1CubeMake()
Make Object Cube 1,100.0
Color Object 1,rgb(255,0,0)
Ghost Object On 1
endfunction
"


Syntax Error - Learn to type, you fool!

Login to post a reply

Server time is: 2025-05-22 12:57:02
Your offset time is: 2025-05-22 12:57:02