PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns information about the type of character.
Example
CharactType("A") // the function returns ctAlpha|ctUppercase

CharactType("é") // the function returns ctAlpha|ctLowercase|ctAccent

// Checks whether a character is a letter
IF BinaryAND(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:
ctAccentAccented or diacritical character.
The ctAccent constant is always combined with the ctAlpha constant.
ctSpaceSpace.
ctAlphaLetter.
ctUppercaseUppercase character.
The ctUppercase constant is always combined with the ctAlpha constant.
ctLowercaseLowercase character.
The ctLowercase constant is always combined with the ctAlpha constant.
ctNumericNumeric character.
ctPunctuationPunctuation character.
<Character>: Character string (with quotes)
Character to use.
Remarks
  • The character 0 returns 0.
  • Some character information can be cumulated: a character can be an accented letter. In this case, the following constants may be combined: ctAccent, ctLettre, ctUppercase and ctLowercase.
    To check a single piece of information (for example, if the character is a letter): it is advisable to test the corresponding constant using the BinaryAND function or the "&" operator.. For example:
    // Checks whether a character is a letter
    IF BinaryAND(CharactType("c"), ctAlpha) <> 0 THEN
    Trace("This character is a letter")
    END
Business / UI classification : Neutral code
Component : wd250vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment