cStringString to inspect.
AdvPL GuideIsUpper(cString) -> lResultChecks whether the first character is an uppercase letter.
The function examines only the first position and recognizes ASCII A–Z without accented letters. The official example calls IsLower, conflicting with the IsUpper contract; this adaptation explicitly calls IsUpper. (Sources: refs. 1–1.)
IsUpper(cString) -> lResultcStringString to inspect.
Logical result for the first character.
#Include "Protheus.ch"
User Function Ed498()
// The second letter does not determine the result.
ConOut(IsUpper("Ab"))
ConOut(IsUpper("aB"))
Return NilAb returns true; aB returns false. 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.