122-32000 Parallax Inc, 122-32000 Datasheet - Page 315

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
VAR
Declare a Variable Block.
VAR
VAR
Explanation
VAR
declares global variable symbols. This is one of six special declarations (
PRI
Variable Declarations (Syntax 1)
The most common form of variable declarations begins with
by one or more declarations.
on and the lines following it must be indented by at least one space.
VAR
This example defines
LargeNumber
ways similar to the following:
Size Symbol
Size Symbol
byte Str[10]
word Code
long LargeNumber
, and
is the Variable Block declaration. The Variable Block is a section of source code that
Size
Symbol
Count
variable, with Count number of elements; each being of size byte, word or long.
When later referencing these elements, they begin with element 0 and end with
element Count-1.
DAT
) that provide inherent structure to the Spin language.
is the desired size of the variable,
as a long (four bytes). Public and Private methods can refer to these variables in
is an optional expression, enclosed in brackets, that indicates this is an array
[Count ]
[Count ]
is the desired name for the variable.
〉 〈
〉 〈
Str
, Symbol
as a byte array of 10 elements,
Size Symbol
VAR
must start in column 1 (the leftmost column) of the line it is
[Count ]
[Count ]
〉〉...
BYTE
4: Spin Language Reference –
〉〉...
,
WORD
or
LONG
Code
VAR
Propeller Manual v1.0 · Page 315
.
on a line by itself followed
as a word (two bytes) and
CON
,
VAR
,
OBJ
,
PUB
,

Related parts for 122-32000