<-- Previous || Up || Next -->

Swap Upper And Lower Case Function
Character Types Class

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

Replace all lower-case alphabetic characters with their upper-case equivalent, and
replace all upper-case characters with their lower-case equivalent.

Examples:
    SwapUpperAndLowerCase("ABC abc 123 !@#") = "abc ABC 123 !@#"
    SwapUpperAndLowerCase("abc 123 ABC !@#") = "ABC 123 abc !@#"
See also:
    ToLower Function
    ToUpper Function
    CapitalizeLike Function
    RandomCapitalize Function
vValue: The string containing the characters whose "case" is to be swapped. Function returns Null if vValue is Null or cannot be fixed up to a String.

Note: Function only works for characters in the ANSI Windows character set because it uses the built-in Visual Basic LCase$() and UCase$() functions.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.