DelphiBasics
AnsiUpperCase
Function
Change lower case characters in a string to upper case SysUtils unit
 function AnsiUpperCase ( const MixedString : string ) : string;
Description
The AnsiUpperCase function creates a copy of MixedString with all letters converted to upper case.
 
All Ansi commands support multi-byte and accented characters.
Notes
AnsiUpperCase supercedes the UpperCase function.

Multi-byte character sets are operating system defined. For example, Oriental versions of Windows uses multi-byte characters to support their very large set of primitives ('letters').
Related commands
AnsiLowerCase Change upper case characters in a string to lower case
UpCase Convert a Char value to upper case
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 Download this web site as a Windows program.




 
Example code : Converting a mixed case string to upper case
// Full Unit code.
// -----------------------------------------------------------
// You must store this code in a unit called Unit1 with a form
// called Form1 that has an OnCreate event called FormCreate.
 
unit Unit1;
 
interface
 
uses
  SysUtils,   // Unit containing the AnsiUpperCase command
  Forms, Dialogs;
 
type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  end;
 
var
  
Form1: TForm1;
 
implementation
{$R *.dfm} // Include form definitions
 
procedure TForm1.FormCreate(Sender: TObject);

var
  SimpleString : string;

begin
  SimpleString := AnsiUpperCase('The Cat Sat On The MAT');
  ShowMessage('SimpleString : '+SimpleString);
end;
 
end.
Hide full unit code
   SimpleString : THE CAT SAT ON THE MAT
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Home Page