|
|
|
|
|
CharactType (Function) In french: CaractType Returns information about the type of character. CharactType("A")
CharactType("é")
IF BitwiseAND(CharactType("c"), ctAlpha) <> 0 THEN
Trace("This character is a letter")
END
Syntax
<Result> = CharactType(<Character>)
<Result>: Integer constant (or combination of constants) Type of studied character: | | ctAccent | Accented or diacritical character. The ctAccent constant can only be combined with ctAlpha. | ctAlpha | Letter. | ctLowercase | Lowercase character. The ctLowercase constant can only be combined with ctAlpha. | ctNumeric | Numeric character. | ctPunctuation | Punctuation character. | ctSpace | Space. | ctUppercase | Uppercase character. The ctUppercase constant can only be combined with ctAlpha. |
<Character>: Character string Character to use. Remarks - The character 0 returns 0.
- Some character information can be combined: a character can be an accented letter.. In this case, the following constants can be combined: ctAccent, ctLettre, ctMajuscule and ctMinuscule.
To check a single piece of information (for example, if the character is a letter): we recommend testing the corresponding constant using the BitwiseAND function or the "&" operator.. For example:
IF BitwiseAND(CharactType("c"), ctAlpha) <> 0 THEN
Trace("This character is a letter")
END
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|