Syntax:
output = LCase(source)
Command Availability:
Available on all microcontrollers.
Explanation:
The LCase function converts all of the letters in the string source to lower case, and returns the result. Characters that are not letters are left unchanged.
Example:
'Set chip model
#chip 16F1936
'Set up hardware serial connection
#define USART_BAUD_RATE 9600
#define USART_TX_BLOCKING
'Fill a string with a message
Dim TestData As String
TestData = "Hello, world!"
'Display the string in lower case
'Will display "hello, world!"
HSerPrint LCase(TestData) ' <<< the LCase instruction
HSerPrintCRLFKey line: LCase(TestData) — returns TestData with every letter converted to lower case, leaving the comma and exclamation mark untouched.
See Also:
- UCase — the inverse conversion, to upper case

