Strupr Function

Action

Converts a string to uppercase.

Include file

Kernel.bdh

Syntax

Strupr(inout sString: string): string;

Return value

The string converted to uppercase.

Parameter Description
sString String to be converted. This parameter will contain the result string after the Strupr operation

Example

dcltrans
  transaction TStrupr
  var
    sString, sUpper: string;
  begin
    sString := "HeLlO wOrLd!";
    write("string = "); write(sString); writeln;
    // convert string to uppercase
    sUpper := Strupr(sString);
    write("string = "); write(sString); writeln;
    write("upper = "); write(sUpper); writeln;
  end TStrupr;

Output

string = HeLlO wOrLd!
string = HELLO WORLD!
upper = HELLO WORLD!