Sergei,
> What is an easy way to split text line with comma separated values?
>
> For example, if line is
> first, second value, third
> I'd like to be able to have an ordered collection with three elements in
it:
> first
> second value
> third
Try:
'first,second,third' subStrings: $,
Or, if your string contains whitespace which you want to get rid of:
('first, second, third' subStrings: $,) collect: [:each | each trimBlanks]
Best Regards,
Andy Bower
Dolphin Support
http://www.object-arts.com---
Are you trying too hard?
http://www.object-arts.com/Relax.htm---