Returns a substring from a string expression, by specifying a delimiter and the desired delimiter.
Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Field( _ ByVal instr As String, _ ByVal delimiter As String, _ ByVal position As Integer _ ) As String |
C# |
---|
public string Field( string instr, string delimiter, int position ) |
C++ |
---|
public: String Field( String instr, String delimiter, int position ) sealed |
J# |
---|
public string Field( string instr, string delimiter, int position ) |
JScript |
---|
public
function Field( instr : String, delimiter : String, position : int ) : String |
Parameters
- instr
- is the string expression to search
- delimiter
- is a string containing the delimiter
- position
- is an integer containing the occurrence
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*def*ghi"
result = mvspfunctions.Field(txt,"*",2)