|
||||||||||
|
|
||||||||||
| Related Syntax | Related Concepts | Other Library Functions | ||||||||
| function | dbRecordExists |
Available in:
Professional Enterprise |
|
Library: omdb - high level database access
Include: omdb.xin |
Return type: Switch Returns: True or false. |
define external switch function dbRecordExists
read-only dbField record
where
Use dbRecordExists to check whether or not the data cursor is positioned on an existing row.
You must include the following line at the beginning of your OmniMark program:
include "omdb.xin"
The data cursor points to the record set's currently active row.
The function uses a dbField shelf variable in which a dbQuery function stored the record set earlier.
repeat
exit unless dbRecordExists my-query
repeat over my-query
output dbFieldValue my-query null '-dnf-'
output '%t' when ! #last
again
output '%n'
dbRecordMove my-query
again
| ---- |