6.0

Table Of Contents
85
DefineImageIndex (procedure)
Defines a PlanetPress Search index term. PlanetPress Image uses this information to generate the .PDI file
it creates for each PDF file it creates. You use SetImageIndex() to associate a data value with the index
term.
Syntax
defineimageindex( name[, length] )
Arguments
name — String value specifying a name for the index term.
length — String value specifying a length for the index term.
Code Sample Examples
Example1 defines the index term 'PONumber' and assigns it a length of 8 characters. The PDI file generated
by PlanetPress Image contains the line: ~IndexName=PONumber,8. Example 2 defines the same index
term, this time without defining a length for the term. In this case the line in the PDI file becomes:
~IndexName=PONumber
Example 1
defineimageindex( 'PONumber', '8')
Example 2
defineimageindex( 'PONumber' )
Directory
The directory type is a type of string array in which each element in the array contains a pathname. All
pathnames in the array reference a file in the same folder. The number of elements in the array, and the
initial value of each element are both determined dynamically at the time the array is created. You specify
the folder, and the filter you want to apply to the list of files in that folder. When PlanetPress Talk creates
the array, it locates the folder you specified, applies the filter to the list of files that folder contains, and
then for each file that meets the filter criteria, adds its pathname to the directory array. Pathnames may
be either printer pathnames or host pathnames.
You can subsequently set the value of any of the elements in the array, as you would for any element in an
array of type string.
Code Sample Example 1
Example 1 uses a directory on the root drive of a printer.