星期三, 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...

沒有留言:

您或許對這些文章有興趣

Related Posts Plugin for WordPress, Blogger...