Has something changed recently with picker wheels? I had some older code with a picker wheel, and when I tried to run it again, I got some errors.
Attempt to index field ‘?’ (a nil value)
stack traceback:
[C]: ?
?: in function <?:1325>
(tail call): ?
?: in function ‘?’
?: in function <?:390>
(tail call): ?
?: in function <?:122>
(tail call): ?
…ers/seandzafovic/Desktop/Outreach Report V2/main.lua:70: in main chunk
[lua]-- require widget to use tab bar
local widget = require (“widget”)
–Create table of pages. Each page is a display group
local page = {}
page[1]=display.newGroup()
page[2]=display.newGroup()
page[3]=display.newGroup()
page[4]=display.newGroup()
–create picker wheel for centre names
–add table with centre name data
local centredata =
{
{
align=“left”,
width=200,
startindex = 1,
labels =
{
<data removed for space reasons>
},
},
}
local centrePickerWheel=widget.newPickerWheel
{
top=75,
font=native.systemFont,
fontSize=14,
columns= centredata
}[/lua]
The error tells me line 70 of the code, which is the bracket above “top=75”.
I was wondering if there has been a change in the picker wheel setup. if not, i must have made an error somewhere that I missed.