Bryan Posted October 11, 2002 Posted October 11, 2002 OK, here's the deal. I know in Java there is the String Tokenizer class. This allows you to divide up a string into a series of tokens using the methods in the class. Say if you had the string NAME with a value of "John Q Doe". Now if I want to split up this string using the normal methods builtin to VB into 3 strings (FirstName, MiddleInitial, and LastName) it would take a lot of coding. The string tokenizer class in java would basically do this automatically I would use the gettoken method and easily divide up the NAME string into the other strings. It would look something like this: FirstName = gettoken(NAME) MiddleInitial = gettoken(NAME) LastName = gettoken(NAME) each time you invoke the gettoken method it would return the current token and load the next token. It would keep doing this until the method returns a null value that way you know that there are no more tokens in the string. Does anybody know of a class similar to this and if so, where can I get it? Quote
*Gurus* Derek Stone Posted October 12, 2002 *Gurus* Posted October 12, 2002 String.Split Quote Posting Guidelines
Bryan Posted October 15, 2002 Author Posted October 15, 2002 I can't seem to figure out how to use this method, can any one show me how? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.