Dictionary C-Type Records - Calculated Values |
![]() ![]() ![]() |
A C-type record defines a calculated value and has up to 8 fields:
Fields 9 onwards are reserved for internal use and users should not assume anything about their content.
A C-type dictionary item is a QMBasic program written with each line of the program as a separate value in field 2. The EV (edit values) command of ED may help in editing this field. The Dive function of SED provides similar functionality.
The program must return a result via the @ANS variable. This variable is initially zero on entry to QM, is automatically updated to contain the result of I-type expressions and should be updated by C-types. Although it is possible to use @ANS to pass a value from evaluation of one C or I-type item to the next, this is not recommended as the sequence of execution may be indeterminate.
The program can reference data defined by other items in the same dictionary using the {name} construct where name is a C-type, D-type or I-type item.
C-type programs may not use the following QMBasic components:
|