DtpSplitString()

Constructs a new instance of DtpSplitString and parses a string into tokens.

Syntax

DtpSplitString(String str, String delimiters)
 

Parameters

str
The string to parse.

delimiters
A String containing the delimiters used in str. There can be more than one delimiter, but each delimiter can be only one character in length.

Notes

DtpSplitString() parses str into tokens, called elements, based on the specified delimiters. After calling DtpSplitString(), you can call any of the DtpSplitString class methods to select and retrieve specific elements.

Examples

DtpSplitString MyString = new DtpSplitString("This,is a test",", ");
 

Copyright IBM Corp. 1997, 2003