xExpValue converted to text.
AdvPL GuidePadR(xExp,nLen,[cFill]) -> cRetPads a string on the right.
Final length is nLen. xExp is converted to string; omitted cFill uses space, otherwise only its first character is used. Inputs longer than nLen are truncated; nonpositive nLen yields empty text. The community sample compares C/L/R; this adaptation uses visible fill characters. (Sources: refs. 1–2.)
PadR(xExp,nLen,[cFill]) -> cRetxExpValue converted to text.
nLenFinal length.
cFillFill character; defaults to space.
String of the specified length, or empty for nonpositive nLen.
#Include "Protheus.ch"
User Function Ed567()
// Visible padding, no data changes.
ConOut(PadR("AB",6,"-"))
ConOut(cValToChar(Len(PadR("AB",6,"-"))))
Return NilResult: AB----; length 6. 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.