cTextSource string.
AdvPL GuideRTrim(cText) -> cRetRemoves trailing spaces while preserving the beginning.
Trims trailing spaces into a new string. It is not a general normalizer for tabs, line endings or Unicode whitespace. Unlike AllTrim, leading spaces remain. Brackets make preserved spaces visible in this example. Do not trim fixed-width key components indiscriminately before a seek. (Sources: refs. 1–1.)
RTrim(cText) -> cRetcTextSource string.
Character without trailing spaces.
#Include "Protheus.ch"
User Function Ed639()
// Memory-only operation; input remains unchanged.
ConOut("["+RTrim(" ABC ")+"]")
Return NilExpected result: [ ABC]. 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.