cArqOrigSource file with extension.
AdvPL GuideMsRename(cArqOrig,cArqDest) -> lOkRenames a file through the current RDD.
The historical reference takes source and destination filenames/extensions and returns logical success. It does not rename an open alias or change a dictionary’s logical name. Path scope and restrictions depend on RDD and environment. The historical documentation does not establish unrestricted table-renaming support across DBMSs. (Sources: refs. 1–1.)
MsRename(cArqOrig,cArqDest) -> lOkcArqOrigSource file with extension.
cArqDestNew filename with extension.
Logical: .T. if the operation succeeds.
#Include "Protheus.ch"
User Function Ed550()
// Block not invoked; use only owned, closed test files.
Local bRename := {|cSource,cDest| MsRename(cSource,cDest)}
ConOut(ValType(bRename))
Return NilPrints B. Renaming is not executed. 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.