cFileCharacterRequired
File path and name to be analyzed.
AdvPL GuideRetFileName( <cArquivo> )Returns only the file name, without path and extension.
RetFileName() extracts only the file name from a string, ignoring both path and extension.
RetFileName( <cArquivo> )cFileFile path and name to be analyzed.
#Include "TOTVS.ch"
User Function ExRetFileName()
Local cArquivo := "\SIGAADV\ARQZZZ.DBF"
MsgInfo(RetFileName(cArquivo)) // ARQZZZ
ReturnThe return contains only the file name, without path and extension.
© 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.