| Description |
|
Returns true if the Unicode character, or the character at Index position in CharString is upper case.
|
| | Notes | Very Important : Methods in .Net treat strings as starting at 0, unlike traditional Delphi where they started at 1.
Static methods are not methods of an object - they are simply class functions or procedures available at any time.
|
|
| Microsoft MSDN Links |
System
System.Char
|
|
|
| An example of both syntaxes |
program Project1;
{$APPTYPE CONSOLE}
var
myStr : String;
i : Integer;
begin
if System.Char.IsUpper('A')
then Console.WriteLine('A is upper case')
else Console.WriteLine('A is not upper case');
myStr := 'AaBb';
for i := 0 to Length(myStr)-1 do // Note : 0 based
if System.Char.IsUpper(myStr, i)
then Console.WriteLine(myStr[i+1] + ' is a upper case')
else Console.WriteLine(myStr[i+1] + ' is not upper case');
Console.ReadLine;
end.
| | Show full unit code | A is upper case
A is a upper case
a is not upper case
B is a upper case
b is not upper case
|
| |
|
|
|