| MvOperationsLkReplace(String, String, Int32, Int32, Int32) Method |
Linkar Framework .NET (Core and Framework)
Replaces a field, value or subvalue from a dynamic array, returning the result.
Namespace: Linkar.FunctionsAssembly: Linkar.Functions (in Linkar.Functions.dll) Version: 2.3.1
Syntax public static string LkReplace(
string str,
string newVal,
int field,
int value = 0,
int subvalue = 0
)
Public Shared Function LkReplace (
str As String,
newVal As String,
field As Integer,
Optional value As Integer = 0,
Optional subvalue As Integer = 0
) As String
public:
static String^ LkReplace(
String^ str,
String^ newVal,
int field,
int value = 0,
int subvalue = 0
)
static member LkReplace :
str : string *
newVal : string *
field : int *
?value : int *
?subvalue : int
(* Defaults:
let _value = defaultArg value 0
let _subvalue = defaultArg subvalue 0
*)
-> string
Parameters
- str String
- The string on which you are going to replace a value.
- newVal String
- New value that will be replaced in the indicated string.
- field Int32
- The position of the attribute where you want to replace.
- value Int32 (Optional)
- The multivalue position where you want to replace.
- subvalue Int32 (Optional)
- The subvalue position where you want to replace.
Return Value
StringA new string with the replaced value.
Example string result = MvOperations.LkReplace("CUSTOMER UPDATE 2þADDRESS 2þ444", "MYTEXT", 1);
String result = MvOperations.LkReplace("CUSTOMER UPDATE 2þADDRESS 2þ444", "MYTEXT", 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.
See Also