UNLOAD - v14


unload                        <file> {,d}

Function

Dump the current document to a file.

Parameters

file
 

The name of the text file to receive the dumped document. The default file extension is DAT.
 

d

Implies that the file is to be created in document mode. Stored in this mode, a subsequent call to the DOCUMENT command on this file will ensure that data fields are recognised as such.
 

 

Without parameters the current document is sent to the printer,

Examples

unload formsh1

unload scheda,dat

Notes

The current document is the document still active from the last DOCUMENT command.

 

When files are created in document mode, data fields defined in the document by the PUT command, are enclosed by " and ", so that they can be recognised as data fields rather than just document text when updating of the document is carried out.

 

Warning

Some documentation revisions included UNLOAD as being a function of the LOAD command to UNLOAD a custom DLL.  The correct command to use to UNLOAD a previously loaded DLL is to use the LOAD command again.   A routine has been added to the LOAD command which is called when an  unload is performed. This routine, called cus_ct_unload, can be used to free memory and resources used in the DLL.  

See also

FILE, document, set(lpr)