| MvOperationsLkChange Method |
Linkar Framework .NET (Core and Framework)
Replaces the occurrences of a substring inside a string, by other substring.
Namespace: Linkar.FunctionsAssembly: Linkar.Functions (in Linkar.Functions.dll) Version: 2.3.1
Syntax public static string LkChange(
string str,
string strOld,
string strNew,
int occurrence = 0,
int start = 0
)
Public Shared Function LkChange (
str As String,
strOld As String,
strNew As String,
Optional occurrence As Integer = 0,
Optional start As Integer = 0
) As String
public:
static String^ LkChange(
String^ str,
String^ strOld,
String^ strNew,
int occurrence = 0,
int start = 0
)
static member LkChange :
str : string *
strOld : string *
strNew : string *
?occurrence : int *
?start : int
(* Defaults:
let _occurrence = defaultArg occurrence 0
let _start = defaultArg start 0
*)
-> string
Parameters
- str String
- The string on which the value is going to change.
- strOld String
- The value to change.
- strNew String
- The new value.
- occurrence Int32 (Optional)
- The number of times it will change.
- start Int32 (Optional)
- The position from which you are going to start changing values.
Return Value
StringA new string with replaced text.
Example string result = MvOperations.LkChange("CUSTOMER UPDATE 2þADDRESS 2þ444", "UPDATE", "MYTEXT", 1, 1);
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
String result = MvOperations.LkChange("CUSTOMER UPDATE 2þADDRESS 2þ444", "UPDATE", "MYTEXT", 1, 1)
See Also