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,  _ 
   ByVal vmc As Integer,  _ 
   ByVal svc As Integer _ 
) As String
C#
public string Delete(
   string instr,
   int amc,
   int vmc,
   int svc
)
C++
public:
 String Delete(
   String instr,
   int amc,
   int vmc,
   int svc
) sealed 
J#
public string Delete(
   string instr,
   int amc,
   int vmc,
   int svc
)
JScript
public  function Delete(
   instr : String,
   amc : int,
   vmc : int,
   svc : int
) : String

Parameters

instr
is the string containing the dynamic array
amc
is an integer containing the attribute to delete
vmc
is an integer containing the multivalue to delete
svc
is an integer containing the subvalue to delete

Return Value

a string with the specified value deleted

Remarks



Example shows attribute 2, multivalue 2, subvalue 2 being deleted from the dynamic array

 Copy Code
 Dim mvspfunctions as new rocketsoftware.MVSP.Functions
 Dim am as chr(254)
 Dim vm as chr(253)
 Dim svm as chr(252)
 Dim txt as string
 Dim result as string
 txt = "abc" & am & "def" & vm & "123" & svm & "xyz" & am & "ghi"
 result = mvspfunctions.Delete(txt,2,2,2) ' will delete attribute 2. multivalue 2, subvalue 2
 

See Also