DbZap
DbZap()Historical reference: removes all records from the table.
Overview
The eAdvpl guide lists parameterless DbZap() and says it removes all records from the table. No current function page was located confirming its RDD/release contract or return. This remains under review and is not a maintenance procedure. A filter must not be interpreted as a safe operation boundary. The example only stores a historical invocation in an unexecuted block.
Syntax
DbZap()Return value
Not established by the consulted source.
Commented example
#Include "Protheus.ch"
User Function Ed344()
Local bHistorical
// Prepare only; do not call Eval in this example.
bHistorical := {|| EDTRB->(DbZap())}
Return NilBlock created without changing records. Function availability still requires environment validation. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Validate API, exclusivity and recovery for the applicable RDD/release. Do not experiment on standard or shared tables.
- 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.