XML Script logo
Function rpad
Name

rpad

Returns

string

Parameter count

4

Parameter 1

string, a string

Parameter 2

char, a string

Parameter 3

length, a number

Parameter 4

truncate, a number

Description

This function pads 'string' with a number of 'char' characters, so that the total length is 'length'. The extra characters are appended to the string: it is padded on the right. If 'truncate is set to 1 and 'string' is longer than 'length' characters, it will be truncated to 'length' characters, otherwise it is left as it is

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited