cStringString to analyze.
AdvPL GuideIsAlpha(cString) -> lResultChecks whether the first character is a letter.
The contract covers the first position and describes uppercase or lowercase A–Z. A letter-starting string may contain digits and symbols later. It therefore validates neither an entirely alphabetic string nor international names. (Sources: refs. 1–1.)
IsAlpha(cString) -> lResultcStringString to analyze.
Logical result about the first character.
#Include "Protheus.ch"
User Function Ed494()
// Only the first character is checked.
ConOut(IsAlpha("A1"))
ConOut(IsAlpha("1A"))
Return NilResults: true and 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.