Saving datas with RapaGUI

Discuss GUI programming with the RapaGUI plugin here
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Saving datas with RapaGUI

Post by airsoftsoftwair »

Something like this: (untested)

Code: Select all

OpenFile(1, projectname$)
While Not Eof(1)
    Local t$ = ReadLine(1)
    Local t = SplitStr(t$, ",")
    moai.DoMethod("lv", "insert", "bottom", t[0], t[1], t[2], t[3])
Wend
CloseFile(1)
Pierre55
Posts: 54
Joined: Sat Apr 01, 2017 4:25 pm

Re: Saving datas with RapaGUI

Post by Pierre55 »

Hi,

I had again "unexpected symbol" at some lines and just found that when I COPY and PASTE from the browser there are some snon-breaking spaces (ASCII 160).

Now there is an error on the line:

moai.DoMethod("lv", "insert", "bottom", t[0], t[1], t[2], t[3])

String expected in argument 8!

Thanks.
Pierre55
Posts: 54
Joined: Sat Apr 01, 2017 4:25 pm

Re: Saving datas with RapaGUI

Post by Pierre55 »

I found the problem with the line.. a T[4] was missing!

Thanks again.
Post Reply