To get it out of the way, I am a noob to lua and corona.
I have a question that’s probably simple but i have not been able to find or fix myself. I am using the list demo and wanted to change the list items. Here is what I did.
*************************************
– Initialize a list of data items
items = {}
items[1] = “test1”
items[2] = “here2”
items[3] = “here3”
items[4] = “here4”
items[5] = “here5”
items[6] = “here6”
items[7] = “here7”
items[8] = “here8”
–for numItems = 1,1000 do
– items[numItems] = “test”…numItems
–end
****************************************
The list shows but I get the error below?
*****************************************
Runtime error
bad argument #1 to ‘_newText’ (string expected, got nil)
stack traceback:
[C]: ?
[C]: in function ‘_newText’
?: in function ‘newText’
/Users/owner1/Downloads/list_demo 2/main.lua:204: in function ‘renderer’
/Users/owner1/Downloads/list_demo 2/main.lua:146: in function ‘createRenderers’
/Users/owner1/Downloads/list_demo 2/main.lua:17: in function ‘init’
/Users/owner1/Downloads/list_demo 2/class.lua:27: in function ‘List’
/Users/owner1/Downloads/list_demo 2/main.lua:252: in main chunk
Runtime error: bad argument #1 to ‘_newText’ (string expected, got nil)
stack traceback:
[C]: ?
[C]: in function ‘_newText’
?: in function ‘newText’
/Users/owner1/Downloads/list_demo 2/main.lua:204: in function ‘renderer’
/Users/owner1/Downloads/list_demo 2/main.lua:146: in function ‘createRenderers’
/Users/owner1/Downloads/list_demo 2/main.lua:17: in function ‘init’
/Users/owner1/Downloads/list_demo 2/class.lua:27: in function ‘List’
/Users/owner1/Downloads/list_demo 2/main.lua:252: in main chunk
*********************************************** [import]uid: 8000 topic_id: 1691 reply_id: 301691[/import]