7.4

Table Of Contents
Example
setstrokecolor([100,100,0,0])
setfillcolor([0,0,100,0])
moveto(1,1)
lineto(1.5,2)
lineto(0,2)
closepath()
strokeandfill()
StrToCur (function)
Converts a string value into a currency value.
Syntax
strtocur( string ) currency value
Argument
string
String value to convert.
StrToFloat (function)
Converts a string into a measure value.
Syntax
strtofloat( string ) measure value
Argument
string
String value to convert.
Code Sample Example
This example reads a column of 6 values then converts the values to floating point values and then adds the ir values to the
&total variable. The total value is subsequently converted back to a string and the result is printed.
Example
define(&total,measure,0.0)
define(&x,integer,0)
©2010 Objectif Lune Inc - 367 -