nCountSpace count.
AdvPL GuideSpace(nCount) -> cSpacesCreates a string of spaces.
The argument specifies the number of spaces. Space(0) produces an empty string; a space-filled string is not Nil. Visible delimiters and Len make padding and length inspectable. Maximum limits in historical documents require build confirmation rather than universal assumptions. (Sources: refs. 1–2.)
Space(nCount) -> cSpacesnCountSpace count.
Character.
#Include "Protheus.ch"
User Function Ed671()
Local cSpaces := Space(3)
// Delimiters make padding visible.
ConOut("["+cSpaces+"]")
ConOut(Len(cSpaces))
Return NilDisplays [ ] and length 3. 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.