Converts a string to uppercase.
Kernel.bdh
Strupr(inout sString: string): string;
The string converted to uppercase.
Parameter | Description |
---|---|
sString | String to be converted. This parameter will contain the result string after the Strupr operation |
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;
string = HeLlO wOrLd! string = HELLO WORLD! upper = HELLO WORLD!