|
|
|
|
<String type>.CharactTypeCount (Function) In french: <Type Chaîne>.CaractOccurrenceType Returns the number of characters matching a given type.
NbChar is int MyString is string = "AbcdeF" NbChar = MyString.CharactTypeCount(ctUppercase) // NbChar = 2
Syntax
<Result> = <String>.CharactTypeCount(<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: | | ctAccent | Accented or diacritical character. | ctAlpha | Letters. | ctLowercase | Lowercase characters. | ctNumeric | Numeric characters. | ctPunctuation | Punctuation characters. | ctSpace | Spaces. | ctUppercase | Uppercase 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|