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

Left Justify Truncate Fast Function
Formats Justifies Class

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

Left justify a string.
Undersized strings are right-padded with spaces.
Oversized strings have their right side truncated so that the result string always has length vWidth.
"Fast" function has restrictive argument types to avoid argument fix-up code.

Examples:
    LeftJustifyTruncateFast("This is a test.", 20) = "This is a test.     "
    LeftJustifyTruncateFast("This is a test.", 10) = "This is a "
See also:
    LeftJustifyFast Function
    LeftJustifyTruncateFillFast Function
    RightJustifyTruncateFast function
vValue: String which is to be left-justified.
vWidth: Length to which the string vValue will be space-filled or truncated.

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