LCase, LCase$ Functions

See Also1OIU1AN              Example1KDLHTS>Low

Returns a string in which all letters of an argument have been converted to lowercase.

Syntax

LCase[$](strexpr)

Remarks

LCase returns a Variant8PHEAW3; LCase$ returns a String. 

The argument strexpr can be any string expression1330R89.  However, only LCase can accept a Variant of VarType7A68ZTZ 1 (Null1DDW7C0 ) as strexpr, in which case, a Null is returned.

Only uppercase letters are converted to lowercase; all lowercase letters and nonletter characters remain unchanged.


See Also

UCase, UCase$ Function3V5EGD


LCase, LCase$ Function Example

The example uses LCase to return an all-lowercase version of the argument string.  To try this example, paste the code into the Declarations section of a form.  Then press F5 and click the form.

 

Sub Form_Click ()

   Dim Lowercase, Msg, Uppercase         ' Declare variables.

   Uppercase = "ONCE UPON A TIME"        ' String to convert.

   Lowercase = LCase(UpperCase)          ' Convert to lowercase.

   Msg = "LCase converts """ & Uppercase & """ to """

   Msg = Msg & Lowercase & "."""

   MsgBox Msg                            ' Display message.

End Sub