cArqOrigSource; required with TOP.
AdvPL GuideMsCopyTo([cArqOrig],cArqDest) -> lOkCopies records and structure to a destination.
An omitted source may use the current work area for local access; TOP requires it explicitly. Destination is required. Unlike MsCopyFile, this operation handles records through the driver. Historical reference: verify behavior in the deployed release/RDD. (Sources: refs. 1–1.)
MsCopyTo([cArqOrig],cArqDest) -> lOkcArqOrigSource; required with TOP.
cArqDestDestination for copied records.
Logical result of the documented operation.
#Include "Protheus.ch"
User Function Ed535()
// Block not invoked; supply only authorized test artifacts.
Local bOperation := {|cSource,cDest| MsCopyTo(cSource,cDest)}
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.