7.6

Table Of Contents
define( &left_margin, measure, 1.5 )
define( &is_bottom, boolean, (&current.line > 50) )
define( &my_array,arrayinteger,[12,3,76,109,4] )
define( &my_array,arrayinteger, 5 )
define( &prices,arraycurrency, 6)
define( &greetings,arraystring,['hello','bonjour','ola'] )
define( &mustard,color,[0,12,84,16] )
define( &image_paths, directory, 'c:\\images\\*.JPG' )
define( &cost, currency, 0.00 )
Put (procedure)
Assigns a value to an element of an array.
Syntax
put( &array, index, value )
Arguments
&array
Array variable containing the element whose value you want to change.
index
Integer value representing the position of the element in the array.
value
The value you want to assign to the element. The value must be of the same the type as the array. Thus if the array is of type
string, the value must be of type string.
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 "= (operator)" (page 391).
Syntax
set( name, value )
Arguments
name
Variable name, prefixed with the ampersand (&) character. The variable name must already exist.
value
New value to store in the variable. This value can be any valid PlanetPress Talk expression, as long as its type is the same as
the variable's original type.
Code Sample Example
set( &invoice_number, (&invoice_number + 1) )
set( &is_bottom, (not(&is_top) and not(&is_middle)) )
©2010 Objectif Lune Inc - 561 -