Deletes a specified value from a dynamic array
Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Delete( _ ByVal instr As String, _ ByVal amc As Integer _ ) As String |
C# |
---|
public string Delete( string instr, int amc ) |
C++ |
---|
public: String Delete( String instr, int amc ) sealed |
J# |
---|
public string Delete( string instr, int amc ) |
JScript |
---|
public
function Delete( instr : String, amc : int ) : String |
Parameters
- instr
- is the string containing the dynamic array
- amc
- is an integer containing the attribute to delete
Return Value
a string with the specified value deleted
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.Delete(txt,2) ' will delete attribute 2