Specify the lock or wait option as a variable
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
NO-LOCK, EXCLUSIVE-LOCK, SHARE-LOCK,
and NO-WAIT are ABL keywords that also represent constants that you can
assign to an integer variable and pass in as an integer to the FIND-
and GET- methods. For example:
|
This can be useful when the FIND or GET method is in a
different procedure or function from the one that determines what the lock or wait mode
should be, or when you want to enumerate these lock and wait options and pick one
depending on some other value.