cStringString forming the key.
AdvPL GuideDescend( cString ) --> cRetComplements a string for descending-order keys.
Descend complements a string representation rather than sorting an array or reversing text. The reference requires a string and converts dates with DToS in its index example. A seek must apply the same transformation as the key. Documented Chr(0) remains Chr(0), enabling a check without displaying control characters. (TOTVS, n.d., ref. 1)
Descend( cString ) --> cRetcStringString forming the key.
Complemented string.
#Include "Protheus.ch"
User Function Ed349()
// Compare without printing the null character.
ConOut(cValToChar(Descend(Chr(0)) == Chr(0)))
Return NilTrue for the documented case. 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.