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

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
OBJ
Declare an Object Block.
OBJ
Explanation
The Object Block is a section of source code that declares which objects are used and the
object symbols that represent them. This is one of six special declarations (
PRI
Object declarations begin with
OBJ
lines following be indented by at least one space. For example:
OBJ
This example defines
symbol of type
using the object symbols as in the following example.
PUB Print | S
This public method,
method. It does this by using the
Symbol
Num : "Numbers"
Term : "TV_Terminal"
S := Num.ToStr(LongVal, Num#DEC)
Term.Str(@S)
, and
must start in column 1 (the leftmost column) of the line it is on and we recommend the
Symbol
Count
objects, with Count number of elements. When later referencing these elements, they
begin with element 0 and end with element Count-1.
ObjectName
an object with this filename is searched for in the editor tabs, the working directory
and the library directory. The object name can contain any valid filename characters;
disallowed characters are \, /, :, *, ?, ", <, >, and |.
DAT
[Count]
) that provide inherent structure to the Spin language.
is an optional expression, enclosed in brackets, that indicates this is an array of
is the desired name for the object symbol.
"TV_Terminal"
: "ObjectName"
is the filename, without extension, of the desired object. Upon compile,
Print
Num
, calls the
as an object symbol of type
. Public and Private methods can then refer to these objects
OBJ
on a line by itself followed by one or more declarations.
Num
Numbers’ ToStr
Symbol
and
4: Spin Language Reference –
Term
[Count]
object symbols followed by the Object-
method and also the
: "ObjectName"
"Numbers"
Propeller Manual v1.0 · Page 247
and
TV_Terminal
Term
CON
,
VAR
as an object
,
OBJ
’s
,
PUB
Str
,

Related parts for 122-32000