lUnlockReleases previous locks when true; default .T.
AdvPL GuideDBAppend( [lUnlock] ) --> NilAppends an empty record to the current table.
DBAppend adds an empty record and returns Nil. True lUnlock, the default, releases previous locks; false retains them. This does not replace process lock and transaction management. The fragment explicitly uses false and assigns no fields: a complete routine must handle insertion failure and validate the record before proceeding. 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)
DBAppend( [lUnlock] ) --> NillUnlockReleases previous locks when true; default .T.
Nil; not a logical success indicator.
#Include "Protheus.ch"
User Function Ed323()
// EDTRB must be owned, disposable and writable in testing.
If Select("EDTRB") > 0
EDTRB->(DBAppend(.F.))
EndIf
Return NilRequests empty insertion if EDTRB is open; not a complete persistence test. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.