7.4

Table Of Contents
Example
define(&x,integer,1)
%Define loop variable
setfillcolor([100,100,0,0])
%Fill blue
for(&x,1,1,10)
%Set up loop
%We must convert &x because rectfill
%expects measure values
rectfill(inttofloat(&x)/2,1,0.1,1)
%Draw rectangle
endfor()
IntToStr (function)
Converts an integer expression into a string value.
Syntax
inttostr( expression ) string value
Argument
expression
Integer value to be converted.
Code Sample Example
This example prints the iterations of a loop.
Example
define(&x,integer,1)
%Define loop variable
for(&x,1,1,10)
%Set up loop
show('Iteration ' + inttostr(&x) )
%Show text
crlf()
%Skip line
©2010 Objectif Lune Inc - 397 -