星期三, 4月 30, 2008

[Boo]Boo and Split

Today, I try to use Split in Boo, here is my code. It is very institude.

splitter = ( char(','), char('\n') )
fields = inputText.Split( splitter )


But Boo won't execute the code, there are something wrong.

However, thanks Boo Programming Language in Google groups:
These 2 discussions answer my question, and I should use '*':

splitter = ( char(','), char('\n') )
fields = inputText.Split( *splitter )


That's so obscure...

沒有留言: