<-- Previous || Up || Next -->

Right Justify Truncate Fill Fast Function
Formats Justifies Class

Public Function RightJustifyTruncateFillFast( _
      ByRef vValue As String _
    , ByVal vWidth As Long _
    , ByRef vFillChar As String _
    ) As String

Right justify a string.
Undersized strings are left-padded to length vWidth with fill character vFillChar.
Oversized strings have their left side truncated to length vWidth.
Like the RightJustifyTruncateFast function except this one uses a fill character other than space.
"Fast" function has restrictive argument types to avoid argument fix-up code.

Examples:
    RightJustifyTruncateFillFast("This is a test.", 20, "-") = "-----This is a test."
    RightJustifyTruncateFillFast("This is a test.", 10, "-") = "is a test."
See also:
    RightJustifyFast Function
    RightJustifyFillFast Function
    RightJustifyTruncateFast Function
    LeftJustifyTruncateFillFast Function
vValue: String which is to be right-justified.
vWidth: Length to which the string vValue will be left-filled or left-truncated.
vFillChar: String whose first character will be used to left-fill undersized vValue strings.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.