Function Character Types Class

UCaseInPlace

"Upper Case In Place" Convert the string argument rValue to upper-case and also return that value.

Signature (Visual Basic / VBA)

Public Function UCaseInPlace( _
    ByRef rValue As Variant _
    ) As Variant

Code Example

    Assuming
       Dim S As String
       S = "This is a sample."
    for example
       UCaseInPlace(S) = "THIS IS A SAMPLE."
    leaves
       S = "THIS IS A SAMPLE."

Parameters

Parameter Description
rValue String argument which is converted to its upper-case equivalent. Function also returns the upper-case value of rValue.

Notes & Version History

Note Function only works for characters in the ANSI Windows character set because it uses the built-in Visual Basic UCase() function.