Declare Function CharLower Lib "user32.dll" Alias "CharLowerA" (ByVal lpsz As String) As String
CharLower converts all of the upper-case letters in a string into lower case. While many programming languages have intrinsic functions to do this, Windows provides this API for languages that may not. The converted string is returned.
Example:
' Convert "Hello, World!" to lower-case
Debug.Print CharLower("Hello, World!")
' value returned is "hello, world!"
Related Call: CharUpper
Category: Strings
Back to the index.