DBCommitAll
DBCommitAll() --> NilDocuments flushing updates and scope across work areas.
Overview
The DBCommitAll page contains an editorial inconsistency: its summary mentions the current area, while its example opens and changes two areas before the global call. Do not use it to isolate one operation’s confirmation. The reference returns Nil and does not establish outer-transaction completion. To avoid flushing unrelated changes in a demonstration, the example only prepares an uninvoked callback. EDTRB identifies only an owned test table already open with the required schema and permissions; examples are not intended for standard tables. (TOTVS, n.d., ref. 1)
Syntax
DBCommitAll() --> NilReturn value
Nil; not a logical success indicator.
Commented example
#Include "Protheus.ch"
User Function Ed327()
Local bFlush
// Global action: do not invoke merely to demonstrate the API.
bFlush := {|| DBCommitAll()}
Return NilCallback created without flushing updates. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Check RDD, alias and pending operations. Navigation can flush updates; preserve context under the caller contract and handle errors in the complete routine.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.