AsPadr Function | |
Convert a value to a right-padded string.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION AsPadr(
uValue AS USUAL,
wLen AS DWORD
) AS STRING
public static string AsPadr(
Usual uValue,
uint wLen
)
Request Example
View SourceParameters
- 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:
1? _FIELD->cRegion == AsPadR(2048, 10)
See Also