![]() |
|
||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||||
|
|
||||||
| Related Syntax | Related Concepts | Other Library Functions | ||||
| function |
db.record-exists |
|
Library: Interfaces, Database access (OMDB)
Import: omdb.xmd |
Return type: Switch Returns: True or false. |
define external switch function db.record-exists
read-only db.field record
Argument definitions
Use db.record-exists to check whether or not the data cursor is positioned on an existing row.
The data cursor points to the record set's currently active row.
The function uses a db.field shelf variable in which a db.query function stored the record set earlier.
repeat
exit unless db.record-exists my-query
repeat over my-query
output db.reader of my-query null '-dnf-'
output '%t' when ! #last
again
output '%n'
db.move-record my-query
again