Inserts "value" into a specific attribute, value or subvalue location in the dynamic array specified by "instr"
Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Insert( _ ByVal instr As String, _ ByVal amc As Integer, _ ByVal vmc As Integer, _ ByVal value As String _ ) As String |
C# |
---|
public string Insert( string instr, int amc, int vmc, string value ) |
C++ |
---|
public: String Insert( String instr, int amc, int vmc, String value ) sealed |
J# |
---|
public string Insert( string instr, int amc, int vmc, string value ) |
JScript |
---|
public
function Insert( instr : String, amc : int, vmc : int, value : String ) : String |
Parameters
- instr
- amc
- vmc
- value
Return Value
Returns a string containing the value inserted at the specified location
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.Insert(txt,1,2,"xyz")
result would now contain "abc]xyz^def^ghi"