Home  |  Delphi .net Home  |  system.String  |  ToLower Method
ToLower  
Method  
Converts a string to lower case
String Class
system NameSpace
CF1.  Function ToLower ( ) : String ;
CF2.  Function ToLower ( Culture : CultureInfo; ) : String;
CF : Methods with this mark are Compact Framework Compatible
Description
Converts all characters in the current string to lower case, taking into account culture information as appropriate.
Notes
Like a lot of string methods, the string object itself is not affected - the modified string is returned for assignment.
Microsoft MSDN Links
system
system.String
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  strA, strB : String;

begin
  strA := 'Hello cruel World';

  Console.WriteLine('strA = ' + strA);

  strB := strA.ToLower;

  Console.WriteLine('Converting to lower case');
  Console.WriteLine('strB = ' + strB);

  Console.ReadLine;
end.
Show full unit code
  strA = Hello cruel World
  Converting to lower case
  strB = hello cruel world
 
 
Delphi Programming © Neil Moffatt All rights reserved.  |  Contact the author