help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

upCase

Convert a string to all uppercase.

Declaration

Source position: line 0

function upCase(

  const s: shortstring

):shortstring;

function upCase(

  c: Char

):Char;

function upcase(

  const s: ansistring

):ansistring;

function UpCase(

  const s: WideString

):WideString;

Description

Upcase returns the uppercase version of its argument C. If its argument is a string, then the complete string is converted to uppercase. The type of the returned value is the same as the type of the argument.

Errors

None.

See also

Lowercase

  

Return lowercase version of a string.

Example

program Example72;

{ Program to demonstrate the upcase function. }

var c:char;

begin
  for c:='a' to 'z' do
    write(upcase(c));
  Writeln;
  { This doesn't work in TP, but it does in Free Pascal }
  Writeln(upcase('abcdefghijklmnopqrstuvwxyz'));
end.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505