DOCUMENT - v14


document                   <file> {,c=<n>} {,l=<n>} {,m=<n>}

or

document                   { % <n1>,<n2>,<n3>,<n4> }

or

document                   on | off | null

Function

Initiate document processing and draw it in the current window.

or

Redefine the portion of the document to be displayed in the current window.

or

Turn document processing on or off in the current window.

 Parameters

<file>

The name of the document data file. This should be a text file with default extension DAT.
 

c-

 

Document width (in characters). n should be in the range 10 through 132.
 

l-

 

Document length (in lines). n should be in the range 10 through 512.
 

m-

The pen (colour) used to display document text.

 

OR

 

none

Simply redraw the currently active document in the current window.

 

 

n1,n2,n3,n4

Restrict the amount of document to be displayed to the characters n1 through n2 on lines n3 through n4. Once redefined in this way, this portion only of the document will be continually displayed until redefined. The character * may be used to indicate the full extremities of the document.

OR

 

file

The name of the document data file. This should be a text file with default extension DAT.

 

 

on

Turn document processing on in the current window.

 

 

off

Turn document processing off in the window. If the windowing system is not active, this is the same as DOCUMENT NULL.

 

 

null

Turn document processing off altogether.

Examples

document minreport

document annsum,c=50,l=25

 

document

document %50,100,10,30

document %10,*,20,*

 

document on

document off

document null

 

Notes

If either the C or L parameters are omitted, the values are taken from the current width or length of the document file.

Functionality retained for compatibility with existing macros.

See also

cancel, field, put, unload, suppress d, window