6.0

Table Of Contents
128
Language Reference
4
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.
valueThe 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.
Random (function)
Returns a measure value between 0 and 1, non-inclusive. Since this function uses the current system time
when run inside the printer, it returns a true random value. On the computer, however, the function uses
the current data page as its seed to ensure the returned value is constant when you navigate from page to
page on your document.
Syntax
random() measure value
Argument
None
Code Sample Example
This example displays 10 random numbers between 1 and 20.
Example
define(&x,integer,1)
for(&x,1,1,10)
show(inttostr(floattoint(random()*20)+1))
crlf()
endfor()
Rectangle (procedure)
Creates and draws a rectangle shape. The rectangle can optionally be filled using the colour specified with
the setfillcolor command. The border can optionally be drawn using the colour specified with the
setstrokecolor command.