The operation add items to list cannot accept the arguments: [0] [1000]

1,071 views
Skip to first unread message

jfand72

unread,
Apr 20, 2016, 6:44:54 PM4/20/16
to MIT App Inventor Forum
Hi, I am trying to construct a list with time values, but I received the error msg at runtime. 
I would appreciate a little help on this.
Thanks
PartOfMyCode.png

Taifun

unread,
Apr 20, 2016, 7:24:39 PM4/20/16
to MIT App Inventor Forum
try to initalize the list using the create empty list block
Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

jfand72

unread,
Apr 20, 2016, 10:18:14 PM4/20/16
to MIT App Inventor Forum
Hi Taifun
I already did it, also using make a list block, with the same result :-(

Taifun

unread,
Apr 21, 2016, 9:03:30 AM4/21/16
to MIT App Inventor Forum
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

jfand72

unread,
Apr 23, 2016, 10:55:04 PM4/23/16
to MIT App Inventor Forum
Hi Taifun
I already figured it out. Let me tell you that dealing with data files I/O in app inventor 2 is not straightforward at all. In my case, it did not work to convert immediately to csv (inside the timer block), instead of that I had to make my lists and post-process them in another block in order to save the data in a .txt file.  
Thank you 

Taifun

unread,
Apr 24, 2016, 9:47:00 AM4/24/16
to MIT App Inventor Forum
a screenshot could have helped us to give you some suggestions

 dealing with data files I/O in app inventor 2 is not straightforward at all. In my case, it did not work to convert immediately to csv (inside the timer block)
my guess is, you are reading a file using the file component. You should convert the text in the File.GotText event and not in a Clock.Timer event

Taifun

jfand72

unread,
Apr 24, 2016, 11:35:39 PM4/24/16
to MIT App Inventor Forum
Hi Taifun
I know you are very helpful, thanks anyway, I am sure I will need your help at some point in the future.
Reply all
Reply to author
Forward
0 new messages