Returns the total number of elements in the DtpSplitString object.
Syntax
int getElementCount()
Return values
Returns an integer containing the total number of elements.
Notes
Elements are numbered from first to last beginning with zero. If getElementCount() returns 6, the highest-numbered element is 5.
Examples
// Create a DtpSplitString object DtpSplitString MyString = new DtpSplitString("This,is a test",", "); // This call returns the integer 4 String numElements = MyString.getElementCount();
See also