Text.UpperCase(Text) Method
Version: Available or changed with runtime version 1.0.
Converts all letters in a string to uppercase.
Syntax
NewString := Text.UpperCase(String: Text)
Note
This method can be invoked without specifying the data type name.
Parameters
String
Type: Text
The string that you want to convert to uppercase.
Return Value
NewString
Type: Text
The string converted to uppercase.
Example
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
See Also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈