7.4

Table Of Contents
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 393).
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)) )
&tax_rates[2] :=32
put( &tax_rates[2], @(1,3,5) )
set( &months, ['JAN','FEB','MAR','APR','MAY'] )
set( &mustard_color,[0,20,90,16] )
set( &prices, [12.5632,18.9932,23.6651,27.0300] )
put( &imagefiles[0], 'c\\images\\sushi.png' )
Global Functions
@name (function/procedure)
Executes a global function or procedure created using the function() command.
The@ character can be the beginning of a data selection, a page call or a procedure or function call.
Syntax
@functionname( parameters ) integer, measure, currency, string, Boolean or no return value
©2010 Objectif Lune Inc - 563 -