Click or drag to resize

AsPadr Function

X#
Convert a value to a right-padded string.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION AsPadr(
	uValue AS USUAL,
	wLen AS DWORD
) AS STRING
Request Example View Source

Parameters

uValue
Type: Usual
The value to be converted.
wLen
Type: DWord
The length of the padded string.

Return Value

Type: String
A right-padded string of length wLen containing the converted value.
Remarks
AsPadR(uValue, wLen) is like specifying PadR(AsString(uValue), wLen, " ").
Examples
This example uses AsPadR() to compare a number with the contents of a character field:
X#
1? _FIELD->cRegion == AsPadR(2048, 10)
See Also