PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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.
Versions 18 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
New in version 18
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
Versions 20 and later
WINDEVJava This function is now available for Java applications.
New in version 20
WINDEVJava This function is now available for Java applications.
WINDEVJava This function is now available for Java applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
CharactType("A") // the function returns ctAlpha|ctUppercase
 
CharactType("é") // the function returns ctAlpha|ctLowercase|ctAccent
 
// Checks if 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 character analyzed:
ctAccentAccented or diacritical character.
The ctAccent constant can only be combined with ctAlpha.
ctSpaceSpace.
ctAlphaLetter.
ctUppercaseUppercase character.
The ctUppercase constant can only be combined with ctAlpha.
ctLowercaseLowercase character.
The ctLowercase constant can only be combined with ctAlpha.
ctNumericNumeric character.
ctPunctuationPunctuation character.
<Character>: Character string (with quotes)
Character to use.
Remarks
  • The character 0 returns 0.
  • Various character characteristics can be combined: a character can be an accented letter. In this case, the following constants can be combined: ctAccent, ctAlpha, ctUppercase and ctLowercase.
    To check a single characteristic (for example, if the character is a letter): it is recommended to test the corresponding constant with BinaryAND or with the "&" operator. For example:
    // Checks if 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: wd260vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment