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.

Author
Message
ShinyDarkrai
16
Years of Service
User Offline
Joined: 11th Apr 2010
Location: Im Omnipresent
Posted: 21st Apr 2010 06:57
Hi, I'm sort of a new Darkbasic programmer and I was just wondering how you make variables global, or if making a variable global is even necessary in Darkbasic.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 21st Apr 2010 09:46 Edited at: 21st Apr 2010 09:46


My signature is NOT a moderator plaything! Stop changing it!
ShinyDarkrai
16
Years of Service
User Offline
Joined: 11th Apr 2010
Location: Im Omnipresent
Posted: 21st Apr 2010 19:27
Well that makes sense didn't see it right away on the command list. Thanks for answering all my noob questions
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 22nd Apr 2010 00:52 Edited at: 22nd Apr 2010 00:54
Well if you want to define the type of variable.

Quote: "Global MyVariable AS Integer"


...Just incase you don't know Have a look around the Principles section of the help.

Login to post a reply

Server time is: 2026-07-26 07:36:39
Your offset time is: 2026-07-26 07:36:39