7.5

Table Of Contents
return an empty string.
Syntax
region(left, top, right, bottom) array of strings
Argument
left,top,right,bottom
Measure values specifying the coordinates, in inches or centimeters, for the area on which to read the data in the current data
page.
Note that since this function returns an array of string, using region to display data on a page does not make much sense; for
better results, consider using regionline().
Code Sample Example
This example illustrates how to assign data from the current data page to a array of strings variable by using the region() com-
mand. Then, a for() loop is used to show every item in the array of strings &detailarray, followed by a carriage return.
Example
define(&detailarray, arraystring, region(1.92,3.53,4.65,4.39))
define(&i, integer, 0)
for(&i, 0, 1, Length(&detailarray)-1)
show(&detailarray[&i])
crlf()
endfor()
Related topics:
l "Regionline (function)" (page 503)
Regionline (function)
Returns an array of strings, containing the text found inside left-top, right-bottom coordinates.
Note: This function only works in Windows Printing or Optimized PostScript Stream. If used in printer centric mode, it will
return an empty string.
Syntax
regionline(x1, y1, x2, y2: measure; [index: integer = 0] string
Argument
x1, y1, x2, y2
Measure values specifying the coordinates, in inches or centimeters, for the area on which to read the data in the current data
page.
index
©2010 Objectif Lune Inc - 503 -