Function String Words Class

ProperCase

Convert a string to its proper-case equivalent. The first character of each alphabetic word is converted to its upper-case equivalent and the remaining alphabetic characters are converted to their lower-case equivalent.

Signature (Visual Basic / VBA)

Public Function ProperCase( _
    ByVal vValue As Variant _
    ) As Variant

Code Example

    ProperCase("This is a TEST.") = "This Is A Test."

Parameters

Parameter Description
vValue String containing the English or Indo-European language phrase which is to be proper-cased. Function returns Null if vValue is Null or cannot be fixed up to a String.

Notes & Version History

Note Visual Basic 4 Users should consider using the built-in StrConv function because this function uses the Entisoft Tools character classification functions.
Note Function uses the built-in character classification routines to determine which characters are upper-case and lower-case.
Note Function only works for characters in the ANSI Windows character set because it uses the built-in Visual Basic UCase$() and LCase$() functions.