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 / dark edit's GLOBAL keyword

Author
Message
fatmanfat
21
Years of Service
User Offline
Joined: 24th Jun 2003
Location:
Posted: 29th Jun 2003 15:26
can't find any documentation on how to use this.

is there any?
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 29th Jun 2003 16:52
If you've looked and you cant find it, then it means there isn't any...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 29th Jun 2003 21:01
You can actually do this manually. All Darkedit does when you use global, is to declare a 1D array which holds the data in just one position, as arrays are global in DBC. So if you wanted to declare the value 10 as global under the name count, you'd have to do it like this:

dim count(1)
count(0)=10

And then it can be accessed all through your program.

Whatever I did I didn't do it!

Login to post a reply

Server time is: 2025-05-19 14:07:43
Your offset time is: 2025-05-19 14:07:43