Click or drag to resize

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.Functions
Assembly: 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
)

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

String
A new string with the replaced value.
Example
string result = MvOperations.LkReplace("CUSTOMER UPDATE 2þADDRESS 2þ444", "MYTEXT", 1);
See Also