|
||||||||||
|
||||||||||
Other Library Functions |
function | dbRecordExists |
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:
record
The dbRecordExists function is used to check whether the data cursor is positioned on an existing row. The data cursor points to the record set's currently active row. The function returns a switch value, which is true when the data cursor is on an existing row, and false otherwise. The function uses the dbField OMX shelf variable in which a dbQuery
function stored the record set earlier. For example:
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
---- |