Error on split text with new line

Hello,

I am new to XOJO please some one help to explain what is wrong in spliting the string
i am getting following error

There is more than one item with this name and it’s not clear to which this refers
l = s.Result.ToText().Split(EndOfLine)

dim s as Shell
dim l() as Text

s = new Shell
s.Execute(“lpstat -p”)
l = s.Result.ToText().Split(EndOfLine) <- error
for each p as Text in l
self.PopupMenu1.AddRow§
next

EndOfLine returns a String, so you’ll need to also convert that to Text to use with Split like this.

l = s.Result.ToText.Split(EndOfLine.UNIX.ToText)

Thanks