PosRepl Function | |
Inserts a character string into a string at a specified position.
Namespace:
XSharp.XPP
Assembly:
XSharp.XPP (in XSharp.XPP.dll) Version: 2.21
Syntax FUNCTION PosRepl(
cString,
cReplace,
nStartPos
) AS STRING CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static string PosRepl(
Usual cString = default,
Usual cReplace = default,
Usual nStartPos = default
)
Request Example
View SourceParameters
- cString (Optional)
- Type: Usual
String to update - cReplace (Optional)
- Type: Usual
The string to insert. - nStartPos (Optional)
- Type: Usual
1 based position where the string must be inserted.
Return Value
Type:
StringReturns the modified string.
Remarks If the parameter nStartPos is not specified the function
replaces Len( cReplace ) characters at the end of cString.
See Also