PadR Function (Usual, Long, String) | |
Pad character, numeric, and date values with fill characters on the right.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION PadR(
uValue AS USUAL,
nLength AS LONG,
cFillChar AS STRING
) AS STRING
public static string PadR(
Usual uValue,
int nLength,
[DefaultParameterValueAttribute("", 0)] string cFillChar
)
Request Example
View SourceParameters
- uValue
- Type: Usual
A character, numeric, or date value to pad with a fill character. - nLength
- Type: Long
The length of the string to return. - cFillChar
- Type: String
The character with which to pad uValueh.
The default is a space character.
Return Value
Type:
String
A string containing
uValue and padded with
cFillChar to a total length of
nLength.
If the length of
uValue exceeds
nLength, PadR() truncates cPaddedString to
nLength.
Remarks
PadR() is the same as Pad().
For more information, see Pad().
Examples See Also