primerecord_prepare_a_record_for_adding_viewmanager_.htm
Navigation: ABC Library Reference > ViewManager > ViewManager Methods >====== PrimeRecord (prepare a record for adding:ViewManager) ====== | |
PrimeRecord( [suppress clear] ), VIRTUAL
PrimeRecord | Prepares the VIEW's primary file record buffer to add a new record. |
suppress clear | An integer constant, variable, EQUATE, or expression that indicates whether or not to clear the record buffer. A value of zero (0 or False) clears the buffer; a valueof one (1 or True) does not clear the buffer. If omitted, suppress clear defaults to zero (0). |
The PrimeRecord method prepares the VIEW's primary file record buffer with initial values to add a new record.
Implementation:
The PrimeRecord method uses the primary file's FileManager.PrimeRecord method to prime the record. Then it uses any applicable range limit information to prime other fields. The suppress clear parameter lets you clear or retain any other values in the record buffer.
Example:
CASE FIELD()
OF ?InsertButton !on insert button
CASE EVENT()
OF EVENT:Accepted !if insert clicked
MyView.PrimeRecord !prime the record for adding
!insert the new record
END
END
See Also: FileManager.PrimeRecord
primerecord_prepare_a_record_for_adding_viewmanager_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1