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

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
STRING
Declare in-line string constant and get its address.
((PUB ┆ PRI))
Returns: Address of in-line string constant.
Explanation
The
purposes, but there are occasions when a string is needed for temporary purposes like
debugging or one-time uses in an object. The
uses; it compiles an in-line, zero-terminated string into memory and returns the address of
that string.
Using STRING
The
that string to other methods. For example, assuming
PrintStr(string("This is a test string."))
The above example uses the
memory and return the address of that string as the parameter for the fictitious
method.
If a string needs to be used in more than one place in code, it is better to define it in the
block so the address can be used multiple times.
Page 310 · Propeller Manual v1.0
STRING
STRING
DAT
StringExpression
purposes.
block is used often to create strings or string buffers that are reusable for various
(StringExpression )
directive is very good for creating one-time-use strings and passing the address of
– Spin Language Reference
is the desired string expression to be used for temporary, in-line
STRING
directive to compile a string, “This is a test string.”, into
STRING
PrintStr
directive is meant for those one-time
is a method created elsewhere.
PrintStr
DAT

Related parts for 122-32000