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 / GLOBAL and #CONSTANT?

Author
Message
skyser
22
Years of Service
User Offline
Joined: 11th Sep 2003
Location: New York, NY
Posted: 14th Sep 2003 02:09
I've seen 'global' and 'constant' as keywords in source code but I can't find ANY references to them in DBPro help. I've more or less figured out the usage of #constant, but are there any sneaky scoping problems I should be aware of when including files?

Any info on these much appreciated. Thanks again!

--skyser
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 14th Sep 2003 07:53
The only help I can give is that
#CONSTANT Myvariable 8

*** No = sign

Globals can also be initialized in a single command

Global MyVar = 2

And you aaare right thier is no info in the help files on these

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
ryansobol
23
Years of Service
User Offline
Joined: 20th May 2003
Location:
Posted: 14th Sep 2003 23:46
im curious also.... never knew u there were any special commands for globals or constants
Dreamora
23
Years of Service
User Offline
Joined: 20th Sep 2002
Location: Switzerland
Posted: 14th Sep 2003 23:54
global is written down in help, for constant im not that sure

Login to post a reply

Server time is: 2026-07-26 05:02:40
Your offset time is: 2026-07-26 05:02:40