7.4

Table Of Contents
Code Sample Example
"Field (function)" (page 542)
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()
Get (function)
Returns an element of an array.
Syntax
get( array, position ) array element
Argument
array
Name of the array.
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.
©2010 Objectif Lune Inc - 489 -