7.4

Table Of Contents
Integer value used to increment varname after each iteration.
stopvalue
Integer value after which iterations stop.
Code Sample Example
This example simply prints 5 lines of text.
To cycle backwards through values, make startvalue larger than stopvalue, and specify a negative increment.
Example
define(&x,integer,1)
for(&x,1,1,5)
show('Line '+inttostr(&x))
crlf()
endfor()
Function @name (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 "@name (function/procedure)" (page 563).
You can reference a global function from within another global function only if the global function you are referencing already
exists.
You cannot reference a function from within itself, so recursive functions are not possible within PlanetPress Talk.
Syntax
Syntax for a function that returns a value:
function @name( arglist ): type
...
&result := return-_value
endfunction()
Syntax for a function that does not return a value (procedure):
function @name( arglist )
...
endfunction()
Arguments
name
©2010 Objectif Lune Inc - 422 -