Viva Clipper !

dbCommitAll()

Advertisements

DBCOMMITALL()

Flushes the memory buffer and performs a hard-disk write

Syntax

      DBCOMMIT()

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

      PROCEDURE 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

Compliance

Clipper

Files

Library is rdd

Seealso

DBCLOSEALL(), DBCOMMIT(), DBUNLOCK()

Advertisements

Advertisements