Functions.PosChar 方法 | |
Replaces a single character at a specified position in a string.
命名空间:
XSharp.XPP
程序集:
XSharp.XPP (在 XSharp.XPP.dll 中) 版本:2.22 GA
语法 FUNCTION PosChar(
cString,
uChar,
nPosition
) AS STRING CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static string PosChar(
__Usual cString = default,
__Usual uChar = default,
__Usual nPosition = default
)
查看代码参数
- cString (Optional)
- 类型:__Usual
String to check - uChar (Optional)
- 类型:__Usual
The new character to insert into the string - nPosition (Optional)
- 类型:__Usual
1 based position to change. Defaults to Len(cString).
返回值
类型:
StringReturns the modified string.
参见