6.0

Table Of Contents
88
Language Reference
4
Code Sample Example
This example is an extract from a user-defined emulation. The search() command looks for a formfeed and
adds its line number. The line number is stored as a string and the document is run. The data page is cleared
and the search is over.
Example
search(&str,'\014')
set(&current.line,&current.line + 1)
store(&current.line,&str)
doform()
clearpage()
endsearch()
&EOJob (system variable)
Read-only variable that returns True if the document has processed the last line of data or if the line that
follows the last form feed character (ASCII 12) is empty. Note that this variable always returns True at
design-time when using a user-defined emulation.
Thus if a file ends with the sequence:
FF CR LF
&eojob becomes true before the last line (CR LF) since the last line is empty.
Syntax
&eojob Boolean value
EPSWidth/EPSHeight (function)
Returns the width or height, in inches, of an Encapsulated PostScript (EPS) image resource.
Syntax
epswidth( name ) measure value
epsheight( name ) measure value
Argument
name — String value that specifies the name of the EPS image resource.