lock
Syntax
LOCK facsname
Meaning
With LOCK you can still lock a record that you read without UPDATE. Locking is required before writing or deleting a record through FACS.
Example
lock SERIALS
if (&E = 0) {
write SERIALS
if (&E <> 0) {
/* Error writing database SERIALS, code is {&E}
errorm text$(281) + ' SERIALS' + text$(202) + ' ' + &E
unlock SERIALS
}
} else {
errorm text$(426) + ' SERIALS' + text$(202) + ' ' + &E
}
See also
Click here for general information about FACS.