Saving datas with RapaGUI

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

Re: Saving datas with RapaGUI

Post by airsoftsoftwair » Thu May 11, 2017 5:57 pm

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: 17
Joined: Sat Apr 01, 2017 4:25 pm

Re: Saving datas with RapaGUI

Post by Pierre55 » Fri May 12, 2017 1:49 pm

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: 17
Joined: Sat Apr 01, 2017 4:25 pm

Re: Saving datas with RapaGUI

Post by Pierre55 » Sat May 13, 2017 2:27 am

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

Thanks again.

Post Reply