7.5

Table Of Contents
position
Integer specifying the position in the array, of the element you want to retrieve. Recall that the first position in an array is 0,
the second is 1, the third 2, etc.
Code Sample Examples
Examples 1 and 2 are equivalent representations of using the get() command.
Example 1
&month := get(&MyArray,12)
Example 2
&month := &MyArray[12]
If (function)
Evaluates an expression and returns one of two specified values according to the results of the evaluation.
Syntax
if( expression, trueresult, falseresult ) any type
Arguments
expression
Boolean value. If it evaluates to true, the function returns the contents of trueresult, otherwise it returns the contents of falsere-
sult.
trueresult, falseresult
Values of any type, as long as both are of the same type. The return value of the function is therefore of the same type as
trueresult and falseresult.
Code Sample Example
This example changes the text to display according to the current value of a variable.
Example
show(if(&pagenumber=1,'Customer Copy','Store Copy'))
IntToStr (function)
Converts an integer expression into a string value.
©2010 Objectif Lune Inc - 544 -