BMXNET 4.0 Developer API

M-like utility method to answer a delimited string of pieces between two 1-based offsets

Namespace:  IndianHealthService.BMXNet
Assembly:  BMXNET40 (in BMXNET40.dll)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static string Piece(
	string thePieces,
	string aDelimiter,
	int nthStart,
	int mthEnd
)
Public Shared Function Piece ( _
	thePieces As String, _
	aDelimiter As String, _
	nthStart As Integer, _
	mthEnd As Integer _
) As String
public:
static String^ Piece(
	String^ thePieces, 
	String^ aDelimiter, 
	int nthStart, 
	int mthEnd
)

Parameters

thePieces
String
Delimited input string e.g. one^two^three
aDelimiter
String
Delimiter character or string, commonly ~ ^ or |
nthStart
Int32
Starting 1-based index of the pieces to copy from
mthEnd
Int32
Ending 1-based index of the pieces to copy to

Return Value

The delimited string from start to end, including delimitered blanks for indexes higher than the explicit number of pieces

See Also