cArquivoArtifact to remove.
AdvPL GuideMsErase(cArquivo,[cIndice],[cDriver]) -> lOkRemoves a data artifact through its driver.
Depending on the RDD, the target can be a file or table. This is not logical deletion of a record through D_E_L_E_T_. Index and driver are optional; the default driver is current. Restrict removal to test artifacts owned by the routine. Historical reference: verify behavior in the deployed release/RDD. (Sources: refs. 1–1.)
MsErase(cArquivo,[cIndice],[cDriver]) -> lOkcArquivoArtifact to remove.
cIndiceIndex according to driver.
cDriverRDD driver.
Logical result of the documented operation.
#Include "Protheus.ch"
User Function Ed538()
// Block not invoked; supply only authorized test artifacts.
Local bOperation := {|cDest,cIndex,cRDD| MsErase(cDest,cIndex,cRDD)}
ConOut(ValType(bOperation))
Return NilPrints B. The operation is not executed; check its logical result when integrating. 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.