This function allows the user to pass in a string / character value and it
will padd the value according to given parameters. The parameters are
as follows:
@ValueToPad = Value to be padded by function.
@PadCharacter = Character used to pad a given value.
@Justification = Justification format bit
0 - Value will be RIGHT justified after padding.
1 - Value will be LEFT justified after padding.
@Width = Total column width of the output after padding.
NOTE - All values passes in for padding must be of CHAR or
VARCHAR data type.
2007-10-02 (first published: 2002-06-20)
15,451 reads