Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

DBCOMMITALL()

Flushes the memory buffer and performs a hard-disk write
---------------------------------------------------------------------------------

 Syntax

        DBCOMMIT() --> NIL  

 Returns

        DBCOMMIT()   always returns NIL.    

 Description

      This function performs a hard-disk write for all work areas.  Before
      the disk write is performed,all buffers are flushed.  open work
      areas.

 Examples

      FUNCTION Main()
      LOCAL cName:=SPACE(40)
      LOCAL nId:=0
      USE Test EXCLUSIVE NEW
      USE TestId New INDEX Testid
      //
      @ 10, 10 GET cName
      @ 11, 10 GET nId
      READ
      //
      IF UPDATED()
         APPEND BLANK
         REPLACE Tests->Name WITH cName
         REPLACE Tests->Id WITH nId
         IF !TestId->(DBSEEK(nId))
            APPEND BLANK
            REPLACE Tests->Id WITH nId
         ENDIF
      ENDIF
      DBCOMMITALL()
      RETURN NIL

Status

      Ready

 Compliance

      This function is CA-Clipper compliant.

 Files

      Library is rdd



See Also: DBCLOSEALL() DBCOMMIT() DBUNLOCK()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson