Syntax:
output = UCase(source)
Command Availability:
Available on all microcontrollers.
Explanation:
The UCase function converts all of the letters in the string source to upper 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 upper case
'Will display "HELLO, WORLD!"
HSerPrint UCase(TestData) ' <<< the UCase instruction
HSerPrintCRLFKey line: UCase(TestData) — returns TestData with every letter converted to upper case, leaving the comma and exclamation mark untouched.
See Also:
- LCase — the inverse conversion, to lower case

