Signature (Visual Basic / VBA)
Public Function RightJustifyTruncateFillFast( _
ByRef vValue As String _
, ByVal vWidth As Long _
, ByRef vFillChar As String _
) As String
Code Example
RightJustifyTruncateFillFast("This is a test.", 20, "-") = "-----This is a test."
RightJustifyTruncateFillFast("This is a test.", 10, "-") = "is a test."
Parameters
| Parameter | Description |
|---|---|
| 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. |