swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   dbRecordMove    

Library: omdb - high level database access
Include: omdb.xin

Declaration

  define external function dbRecordMove
       read-only dbField  record
     by value integer     increment optional
     to value integer     absolute optional

Where:
increment


absolute

Purpose

The dbRecordMove function changes the position of the data cursor within the specified record set. The data cursor points to the currently active row of the record set. By default, the cursor advances one position. You can move the data cursor beyond the record set boundaries, but an exception will occur if you attempt to retrieve a field value in this situation.

Before attempting to retrieve field values, you should use the dbRecordExists function to verify that the data cursor is within the record set boundaries. 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

Note that you should use either the increment or the absolute argument, not both. If you use both, an exception will be thrown.

        Other Library Functions
   dbClose
   dbExecute
   dbFieldValue
   dbIsVersionCompatible
   dbLibraryVersion
   dbOpenODBC
   dbQuery
   dbRecordExists
   dbRecordMove
   dbTableClose
   dbTableDelete
   dbTableInsert
   dbTableOpen
   dbTableUpdate
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:07:06 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.