cTextCharacterRequired
Input text.
AdvPL GuideLTrim(cText) -> cResultRemoves leading blank spaces.
Trailing spaces remain. AllTrim handles both ends and RTrim the right end. Do not assume removal of tabs or every Unicode whitespace character. (Sources: refs. 1–1.)
LTrim(cText) -> cResultcTextInput text.
Transformed string.
#Include "Protheus.ch"
User Function Ed514()
// Local transformation without changing records.
ConOut("["+LTrim(" ED01 ")+"]")
Return NilResult: [ED01 ], retaining two trailing spaces. 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.