StruprEx Function

Action

Converts a string to uppercase format (and umlautes if required).

Include file

kernel.bdh

Syntax

StruprEx( 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 StrUprEx operation.

Example

dcltrans
  transaction TStruprEx
  var
    sString, sUpper: string;
  begin
    sString := "HeLlÖ wOrLd!";
    write("string = "); write(sString); writeln;

    // convert string to uppercase
    sUpper := StruprEx(sString);
    write("string = "); write(sString); writeln;
    write("upper  = "); write(sUpper); writeln;
  end TStruprEx;

Output

string = HeLlÖ wOrLd!
string = HELLÖ WORLD!
upper  = HELLÖ WORLD!