- This wiki is out of date, use the continuation of this wiki instead
Global
From FenixWiki
(Difference between revisions)
Revision as of 00:15, 9 May 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Current revision (11:04, 1 March 2008) (edit) (undo) Sandman (Talk | contribs) m (→Example) |
||
(2 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
[[category:reserved]] | [[category:reserved]] | ||
[[category:language]] | [[category:language]] | ||
+ | [[category:basic statement]] | ||
+ | |||
+ | [[Basic statements|'''Up to Basic Statements''']] | ||
+ | ---- | ||
+ | |||
== Definition == | == Definition == | ||
Line 9: | Line 14: | ||
Global is a reserved word used to initiate the declaration of [[:Category:global variables|global variables]]. Terminating the declaration block with an [[End]] is needed when the Global is not used in conjunction with the main code of the [[Program]]. | Global is a reserved word used to initiate the declaration of [[:Category:global variables|global variables]]. Terminating the declaration block with an [[End]] is needed when the Global is not used in conjunction with the main code of the [[Program]]. | ||
- | For a list of global, see [[:Category:global variables|this page]]. | + | For a list of global variables, see [[:Category:global variables|this page]]. |
== Example == | == Example == | ||
<pre> | <pre> | ||
- | Program example; // Name this program "example", which doesn't really matter | ||
Global // Declare global variables here | Global // Declare global variables here | ||
+ | End | ||
+ | |||
+ | Process Main() | ||
Begin | Begin | ||
Loop | Loop |
Current revision
[edit] Definition
Global
<global variables>;
[End]
Global is a reserved word used to initiate the declaration of global variables. Terminating the declaration block with an End is needed when the Global is not used in conjunction with the main code of the Program.
For a list of global variables, see this page.
[edit] Example
Global // Declare global variables here End Process Main() Begin Loop frame; End End Global // Declare global variables here End