Functions.AsPadr 方法 | |
Convert a value to a right-padded string.
命名空间:
XSharp.RT
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.22 GA
语法 FUNCTION AsPadr(
uValue AS USUAL,
wLen AS DWORD
) AS STRING
public static string AsPadr(
__Usual uValue,
uint wLen
)
查看代码参数
- uValue
- 类型:__Usual
The value to be converted. - wLen
- 类型:UInt32
The length of the padded string.
返回值
类型:
String
A right-padded string of length
wLen containing the converted value.
备注
AsPadR(uValue, wLen) is like specifying PadR(AsString(uValue), wLen, " ").
示例
This example uses AsPadR() to compare a number with the contents of a character field:
1? _FIELD->cRegion == AsPadR(2048, 10)
参见