ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CharactType (Function)
In french: CaractType
Returns information about the type of character.
Example
CharactType("A") // la fonction renvoie ctLettre|ctMajuscule

CharactType("é") // la fonction renvoie ctLettre|ctMinuscule|ctAccent

// Vérifie si un caractère est une lettre
IF BitwiseAND(CharactType("c"), ctAlpha) <> 0 THEN
	Trace("Ce caractère est une lettre")
END
Syntax
<Result> = CharactType(<Character>)
<Result>: Integer constant (or combination of constants)
Type of studied character:
ctAccentAccented or diacritical character.
The ctAccent constant can only be combined with ctAlpha.
ctAlphaLetter.
ctLowercaseLowercase character.
The ctLowercase constant can only be combined with ctAlpha.
ctNumericNumeric character.
ctPunctuationPunctuation character.
ctSpaceSpace.
ctUppercaseUppercase 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:
    // Vérifie si un caractère est une lettre
    IF BitwiseAND(CharactType("c"), ctAlpha) <> 0 THEN
    	Trace("Ce caractère est une lettre")
    END
Business / UI classification: Neutral code
Component: wd300vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help