Click or drag to resize

PosRepl Function

X#
Inserts a character string into a string at a specified position.

Namespace:  XSharp.XPP
Assembly:  XSharp.XPP (in XSharp.XPP.dll) Version: 2.19
Syntax
 FUNCTION PosRepl(
	cString,
	cReplace,
	nStartPos
) AS STRING CLIPPER
Request Example View Source

Parameters

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: String
Returns the modified string.
Remarks
If the parameter nStartPos is not specified the function replaces Len( cReplace ) characters at the end of cString.
See Also