Extracts a value from a string containing a dynamic array.


Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)

Syntax

Visual Basic (Declaration)
Public Function Extract( _ 
   ByVal instr As String,  _ 
   ByVal amc As Integer _ 
) As String
C#
public string Extract(
   string instr,
   int amc
)
C++
public:
 String Extract(
   String instr,
   int amc
) sealed 
J#
public string Extract(
   string instr,
   int amc
)
JScript
public  function Extract(
   instr : String,
   amc : int
) : String

Parameters

instr
is the string containing the dynamic array
amc
is an integer containing the attribute to extract

Return Value

a string containing the extracted data

Remarks



Example shows attribute 2 being extracted from the dynamic array

 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.Extract(txt,2) ' will extract attribute 2
 

See Also