Description |
Returns true if the Unicode character, or the character at Index position in CharString is lower 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.IsLower('a')
then Console.WriteLine('a is lower case')
else Console.WriteLine('a is not lower case');
myStr := 'AaBb';
for i := 0 to Length(myStr)-1 do // Note : 0 based
if System.Char.IsLower(myStr, i)
then Console.WriteLine(myStr[i+1] + ' is a lower case')
else Console.WriteLine(myStr[i+1] + ' is not lower case');
Console.ReadLine;
end.
| Show full unit code | a is lower case
A is not lower case
a is a lower case
B is not lower case
b is a lower case
|
|
|
|