LCase, LCase$ (functions)

Syntax

LCase[$](text)

Description

Returns the lowercase equivalent of the specified string.

Comments

LCase$ returns a String, whereas LCase returns a String variant.

Null is returned if text is Null.

Example

This example shows the LCase function used to change uppercase names to lowercase with an uppercase first letter.

Sub Main()
  lname$ = "WILLIAMS"
  fl$ = Left(lname$,1)
  rest$ = Mid(lname$,2,Len(lname$))
  lname$ = fl$ & LCase(rest$)
  MsgBox "The converted name is: " & lname$
End Sub

See Also

UCase, UCase$ (functions).

More information

L