title | description | ms.author | ms.date | ms.tgt_pltfrm | ms.topic | author |
---|---|---|---|---|---|---|
Text.UpperCase(Text) Method |
Converts all letters in a string to uppercase. |
solsen |
02/26/2024 |
na |
reference |
SusanneWindfeldPedersen |
Version: Available or changed with runtime version 1.0.
Converts all letters in a string to uppercase.
NewString := Text.UpperCase(String: Text)
Note
This method can be invoked without specifying the data type name.
String
Type: Text
The string that you want to convert to uppercase.
NewString
Type: Text
The string converted to uppercase.
The following example shows how to use the UpperCase method.
var
Text000: Label 'Outstanding Order Status';
Text001: Label 'The test string before UpperCase is called:\\%1';
Text002: Label 'The string after UpperCase is called:\\%1';
begin
Lower := Text000;
Message(Text001, Lower);
Upper := UpperCase(Lower);
Message(Text002, Upper);
end;
The first message window displays the following:
The test-string before UpperCase is called:
Outstanding Order Status
The second message window displays the following:
The string after UpperCase is called:
OUTSTANDING ORDER STATUS