6.0

Table Of Contents
53
Define and Assign Values to Variables
Work with Objects
Work with Bar Codes
Function
procedure Defines a new PlanetPress Talk function or procedure. If you define a
function that you want to return a value, you assign that value to the
predefined variable &result on the last line of the function definition.
You call the function or procedure you define using the @name()
command. See “Function @name (procedure)” on page 96.
Name: Type: Description:
Define
procedure This command creates a new local variable, or redefines an existing one.
The define procedure must appear before the variable is actually used.
It is considered good practice to define all your variables at the top of
your program.
Set
procedure This command assigns a new value to a variable. Only user-defined
variables can be set. System variables are read-only. Note that you can
also use the assignment operator to assign a value to a variable. See “Set
(procedure)” on page 136.
Name: Type: Description:
Object
procedure Creates an object. You can reference the object you create using the $
operator. See “Object $name()... EndObject (procedure)” on page 119.
Translate
procedure Offsets an object's position from its original spot on the page. The point
of origin of any object is (0,0) by default. All commands within an object
are relative to that point of origin. Moving, or translating the point of
origin allows you to reset the point of origin within the boundaries of
the object.
Name: Type: Description:
C128 function Converts a two-character string to Code 128 bar code, character set C
data.
ShowBarCode
procedure Displays a specified string as a barcode.
Name: Type: Description: