1.6

Table Of Contents
x1
Double that represents the left edge of the region.
y1
Double that represents the top edge of the region.
x2
Double that represents the right edge of the region.
y2
Double that represents the bottom edge of the region.
Example
The following script attempts to match ((n,m)) or ((n)) against any of the strings in the
specified region and if it does, a document boundary is set.
var myRegion = region.createRegion(170,25,210,35);
var regionStrings=boundaries.get(myRegion);
if (regionStrings) {
for (var i=0;i<regionStrings.length; i++) {
if (regionStrings[i].match(/(\({2}n,*m*\){2})/gi)){
boundaries.set();
}
}
}
(The match() function expects a regular expression; see w3schools.)
createRegion(columnName)
Creates a region from the data in a CSVfile, using the specified columnName parameter.
columnName
String containing the name of the column where the region is to be created.
Example
This script checks the first value in a certain column. If it is not the same value as in the
previous record(s), a document boundary is set.
Page 243