User Tools

Site Tools


primeupdate_update_or_prepare_for_update_.htm
Navigation:  ABC Library Reference > WindowManager > WindowManager Methods >====== PrimeUpdate (update or prepare for update) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

PrimeUpdate, VIRTUAL, PROC

blk2blue.jpg

The PrimeUpdate method prepares the record buffer for entering the update form ACCEPT loop. For actions that can be completed without the ACCEPT loop, PrimeUpdate prevents the ACCEPT loop from executing by returning an appropriate value.

PrimeUpdate returns Level:Benign to indicate the record buffer is ready and the update form's ACCEPT loop should execute.

PrimeUpdate returns Level:Fatal to indicate the ACCEPT loop should not execute, either because the record buffer could not be primed, or because PrimeUpdate completed the requested operation and no further action is necessary.

Implementation:

The PrimeUpdate method primes the record buffer for inserts, deletes the record for automatic deletes, and saves a copy of the record buffer in all cases.

Return value EQUATEs are declared in ABERROR.INC.

Return Data Type:     BYTE

Example:

ThisWindow.Init PROCEDURE()

CODE

!procedure code

IF SELF.PrimeUpdate() THEN RETURN Level:Fatal .

OPEN(ClientFormWindow)

SELF.SetAlerts()

RETURN Level:Benign

primeupdate_update_or_prepare_for_update_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1