Inserts or Replaces a specific attribute, value or subvalue in the string referenced
Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Replace( _ ByVal instr As String, _ ByVal amc As Integer, _ ByVal vmc As Integer, _ ByVal svc As Integer, _ ByVal value As String _ ) As String |
C# |
---|
public string Replace( string instr, int amc, int vmc, int svc, string value ) |
C++ |
---|
public: String Replace( String instr, int amc, int vmc, int svc, String value ) sealed |
J# |
---|
public string Replace( string instr, int amc, int vmc, int svc, string value ) |
JScript |
---|
public
function Replace( instr : String, amc : int, vmc : int, svc : int, value : String ) : String |
Parameters
- instr
- amc
- vmc
- svc
- value
Return Value
A string containing the inserted or replace attribute, value or subvalue
Remarks
Copy Code
Dim mvspfunctions as new rocketsoftware.MVSP.Functions
Dim am as chr(254)
Dim txt as string
Dim result as string
txt = "abc" & am & "def" & am & "ghi"
result = mvspfunctions.Replace(txt,2,3,"xyz")
result would now contain "abc^def\\xyz^ghi"