LJustify()

Left justifies characters in a string of a specified length.

LJustify( string=string, length=number );

Returns: String

Argument Description
string
string, required

A string or a variable that contains one

length
number, required

Length of field in which to justify string

Examples

s = "";
    res = lJustify(s, 4);
    writeDump(len(res)); // length is 4
    writeoutput("<pre>|#res#|</pre><hr>");
    s = "abc";
    res = lJustify(s, 10);
    writeDump(len(res)); // length is 10
    writeoutput("<pre>|#res#|</pre><hr>");
    s = "10";
    res = lJustify(s, 8);
    writeDump(len(res)); // length is 8
    writeoutput("<pre>|#res#|</pre>");

See also