Harbour Reference 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

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30