7.5

Table Of Contents
Code Sample Example
This example draws a yellow filled triangle.
Example
setfillcolor([0,0,100,0])
moveto(1,1)
lineto(1.5,2)
lineto(0,2)
closepath()
fill()
Find (function)
Checks for the presence of a string within a rectangular region of the current data page. If the specified string is found, the
function returns true. This allows you to look for strings within a more general area, rather than at some precise location.
Syntax
find( string1, column1, line1, column2, line2 ) Boolean value
Argument
string1
String value to look for.
column1, line1
Integer values for the top left corner of the rectangular region to search in the current data page.
column2, line2
Integer values for the bottom right corner of the rectangular region to search in the current data page.
Code Sample Example
This example looks for the word 'Invoice' within a region of the data page.
Example
if(find('Invoice',60,1,80,5))
show('Invoice')
elseif()
show('Sales Order')
endif()
FloatToCur (function)
Converts a measure expression into a currency value.
Syntax
floattocur( expression ) currency value
©2010 Objectif Lune Inc - 279 -