Changes the length of a string to a length that you define.

NewString := PADSTR(String, Length[, FillCharacter])

Parameters

String

Type: Text constant or code

The string that you want to increase or decrease.

Length

Type: Integer

The desired length of the output string.

If Length is less than the length of String, then String is truncated. Otherwise String is expanded with filler characters.

If Length is less than 0, then an error is returned.

FillCharacter

Type: Text constant or code

This is a string of length 1. This character is used to fill empty spaces at the end of the output string. If not specified, spaces are used as default. If the length of FillCharacter is not 1, an error is returned.

Expand imageProperty Value/Return Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also