GENERATE |
![]() ![]() ![]() |
The GENERATE command generates a QMBasic include record from a dictionary.
Format
GENERATE file.name
where
Well structured QMBasic programs should not reference fields by field number but should instead use names defined using EQUATE tokens. The GENERATE command processes the dictionary of a named file and constructs an include record with an entry for each field. Optionally, it can also produce tokens for conversion codes associated with fields.
The generation process is controlled by an X-type record named $INCLUDE in the dictionary. The fields of this record are:
If the $INCLUDE record does not exist, it will be created when GENERATE is first run for the file. A prompt will be issued for the type of tokens to be generated (field 8) and the prefix character to be inserted into fields 4 and/or 11. All other fields will be left empty except for field 1 (X).
When creating the matrix style include record for use with MATREAD, the matrix is dimensioned to have one more element than the highest field number referenced in the dictionary. This allows for the different ways in which normal and Pick style matrices handle unexpected fields. |