Click or drag to resize

AsPadr Function

Convert a value to a right-padded string.

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

Parameters

uValue
Type: Usual
The value to be converted.
wLen
Type: UInt32
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#
? _FIELD->cRegion == AsPadR(2048, 10)
See Also