Click or drag to resize

PadC Function (Usual, Int32, String)

Pad values with fill characters on both the right and left.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.01
Syntax
 FUNCTION PadC(
	uValue AS USUAL,
	nLength AS LONG,
	cPad AS STRING := ""
) AS STRING
View Source

Parameters

uValue
Type: Usual
Value to pad
nLength
Type: Int32
Length of result string.
cPad (Optional)
Type: String
Pad character to use. Defaults to the space character.

Return Value

Type: String
The string padded to the requested length. When the value is longer than the requested length then the string will be truncated to that length.
See Also