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 / functions and variables

Author
Message
ico2
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 3rd Jan 2004 19:22
i am working on a game and i have a function that loads 62 variables from seperate files. how do i transfer these variables to be used in my main program and in other functions.
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 3rd Jan 2004 21:54
make them arrays...or if you are using the extended syntax in DarkEdit...put global in front of all the vars. if you dont have the extended syntax on, go to edit->edit options-> check the GLOBAL extended syntax checkbox

ico2
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 3rd Jan 2004 23:50
hmmmmmmmmmmmmmm what is darkedit?

i know nothing at all about arrays, what are they?
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 4th Jan 2004 23:34 Edited at: 4th Jan 2004 23:34
http://darkbasic.thegamecreators.com/?m=showcase&i=5
download it...it is much better than the Darkbasic editor that comes with it.
read the tutorials...you can find them at darkbasic.com click on the side bar under "Tutorials". and there are tutorials that come with Darkbasic. read em...

ico2
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 5th Jan 2004 19:06
thanks

Login to post a reply

Server time is: 2025-06-07 10:55:28
Your offset time is: 2025-06-07 10:55:28