PadR Function (Usual, Long, String)
|
|
用填充字符在右侧填充字符、数字和日期值。
命名空间:
XSharp.RT
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.24 GA
Syntax FUNCTION PadR(
uValue AS USUAL,
nLength AS LONG,
cFillChar AS STRING
) AS STRING
public static string PadR(
Usual uValue,
int nLength,
[DefaultParameterValueAttribute("", 0)] string cFillChar
) Request Example
查看代码Parameters
- uValue
- 类型:Usual
要用填充字符填充的字符、数字或日期值。 - nLength
- 类型:Long
要返回的字符串长度。 - cFillChar
- 类型:String
用于填充 uValue 的字符。
默认是一个空格字符。
Return Value
类型:
String
一个包含
uValue 的字符串,并用
cFillChar 填充到总长度为
nLength。
如果
uValue 的长度超过
nLength,PadR() 将裁剪 cPaddedString 到
nLength。
备注
PadR() 与 Pad() 相同。
有关更多信息,请参见 Pad()。
Examples
See Also