- This wiki is out of date, use the continuation of this wiki instead
Global
From FenixWiki
(Difference between revisions)
Revision as of 00:17, 9 May 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Current revision (11:04, 1 March 2008) (edit) (undo) Sandman (Talk | contribs) m (→Example) |
||
(One intermediate revision 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 13: | Line 18: | ||
== 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