|
Declaration | ||
Declaration .... List Of Variables ... EndDeclaration | ||
Parameters: NONE | ||
Returns: NONE | ||
Declaration opens a variable declaration block. The block is closed by the EndDeclaration statement. Within this block Variables (integer/float & string) can be implicitly listed (declared) . Variables can either be listed one per line, or be separated across a line using the coma character. Declaration blocks are really only useful when the compiler has Explicit Mode enabled. FACTS: * Declaration blocks only support the declaration of Integer, Float and String variables. * Variables listed between the Declaration and EndDeclaration statements must be implicitly declared (Use their postfix symbol). Therefore you can NOT use the "As DataType" method. Mini Tutorial: This example just demos the basic of PlayBASIC Explicit mode.
This example would output.
|
Related Info: | Byte | Dim | Explicit | Float | ForceDeclaration | Global | Integer | Local | Pointer | Static | String | Type | Word : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |