Strlwr Function

Action

Converts a string to lowercase.

Include file

Kernel.bdh

Syntax

Strlwr(inout sString: string): string;

Return value

The string converted to lowercase.

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

Example

dcltrans
  transaction TStrlwr
  var
    sString, sLower: string;
  begin
    sString := "HeLlO wOrLd!";
    write("string = "); write(sString); writeln;
    // convert string to lowercase
    sLower := Strlwr(sString);
    write("string = "); write(sString); writeln;
    write("lower = "); write(sLower); writeln;
  end TStrlwr;

Output

string = HeLlO wOrLd!
string = hello world!
lower = hello world!