cTextSource text.
AdvPL GuideRight(cText,nCount) -> cRetExtracts the final characters of a string.
Returns a suffix copy. Zero yields empty text, a count larger than the source yields the full source, and a negative count raises an error according to TDN. Input is unchanged. Verify counting behavior for the environment encoding; this example uses ASCII. (Sources: refs. 1–1.)
Right(cText,nCount) -> cRetcTextSource text.
nCountNonnegative character count.
Character: requested suffix.
#Include "Protheus.ch"
User Function Ed631()
// Memory-only operation; input remains unchanged.
ConOut(Right("ABCDEF",3))
Return NilExpected result: DEF. 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.