RAD function: strclpr

A RAD function that removes a specified number of characters from the end of a string.

Function

strclpr

Format

$L.void=strclpr($string, $number)

Parameters

The following parameters are valid for the strclpr function:

Parameter Data type Description
$L.void= Not applicable. A syntax requirement only. It does not affect the outcome of the function.
$string String The string being modified.
$number Number The number of characters to remove.

Example

$string="Hewlett-Packard"
$number=6
$L.void=strclpr($string, $number)

After execution, the value of $string is Hewlett-P.