stringtokenizer in Delphi/Object Pascal
Posted on 2001-06-05
I was wondering if there is a sort of StringTokenizer in Delphi. I know that Java has a StringTokenizer, but I can't find it in Delphi, can anyone help me?
A SringTokenizer is an object which divides a string into parts. You can give up a delimiter like:
String deString = "hi,there,this,are,commas";
StringTokenizer someName = new StringTokenizer(deString, ",");
And if i want the next token/element i simply do:
But this is JAVA, but to implement this in Delphi? Plz hELP!!!
Regards and thanks in advance,