Str.Upper | Part of Str module |
Syntax | Str.Upper (s : string) : string |
Description | The Str.Upper function takes the string s and returns
a string in which all the lower case letters are converted to
upper case. For example, Str.Upper ("ABC123def") returns
"ABC123DEF".
|
Example | This program obtains lines of text from the user and outputs the
lines converted to upper case.
var line : string loop put "Enter a line of text (empty to quit): " .. get line : * exit when line = "" put "The upper case version: ", Str.Upper (line) end loop |
Execute | |
Status | Exported qualified. This means that you can only call the function by calling Str.Upper, not by calling Upper.
|
See also | Str.Lower and
Str.Trim.
|