ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Warning
From version 24 (75), CharactTypeOccurrence is kept for backward compatibility. This function has been replaced with CharactTypeCount.
Returns the number of characters matching a given type.
Example
NbChar is int
NbChar = CharactTypeCount("AbcdeF", ctUppercase)
// NbChar = 2
Syntax
<Result> = CharactTypeCount(<String> , <Type>)
<Result>: Integer
Number of characters in the string that correspond to the given type.
<String>: Character string
Character string to use.
<Type>: Integer constant (or combination of constants)
Type of characters to find:
ctAccentAccented or diacritical character.
ctAlphaLetters.
ctLowercaseLowercase characters.
ctNumericNumeric characters.
ctPunctuationPunctuation characters.
ctSpaceSpaces.
ctUppercaseUppercase characters.

Remarks:
  • The combination of ctUppercase + ctAccent is used to find accented uppercase characters.
  • The combination of ctLowercase + ctAccent is used to find accented lowercase characters.
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: 06/10/2024

Send a report | Local help