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, _ ByVal vmc As Integer, _ ByVal svc As Integer _ ) As String |
C# |
---|
public string Extract( string instr, int amc, int vmc, int svc ) |
C++ |
---|
public: String Extract( String instr, int amc, int vmc, int svc ) sealed |
J# |
---|
public string Extract( string instr, int amc, int vmc, int svc ) |
JScript |
---|
public
function Extract( 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 extract
- vmc
- is an integer containing the multivalue to extract
- svc
- is an integer containing the subvalue to extract
Return Value
a string containing the extracted data
Remarks
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.Extract(txt,2,2,2) ' will extract attribute 2. multivalue 2, subvalue 2