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
Andy Watt
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: United Kingdom
Posted: 27th Feb 2003 21:34
I have seen the following in code snippets around this board for DBPro, but can't fine any mention of it in the help, html or manual.

global intBullets as integer

Can anybody enlighten me as to what this command actually does, what it's effect is, etc.

Thanks in advance.
Regards
Andy
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Feb 2003 21:44
well "global" simply make a value global throughout the program ...

AS data typing actually automatically makes a value global, so really don't need it... however another name

local intBullets as integer

would be better as it keeps the value encapsulated to a function

most of the global and local etc... are really just for functions, data types and arrays (^_^)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Feb 2003 22:06
Not quite right Raven, this code displays 5,0,0

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Feb 2003 22:17
yeah... well different patches different techniques
still kinda working from the demo version here

everything was kinda neaten'd up in 3.1 - well aparently, i've not had a chance to use it yet

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Andy Watt
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: United Kingdom
Posted: 27th Feb 2003 23:01
Thanks guy's,
maybe the team at DB should clean up the html help so that these commands are included, plus honourable mentions for #include and #constant which are there as orphan pages, and don't seem to have a link to any of the main help pages.

Regards
Andy

Login to post a reply

Server time is: 2025-05-22 00:23:05
Your offset time is: 2025-05-22 00:23:05