I am trying to auto scroll a table view, but keep getting the error : attempt to index a number value
I’m using build 1171. I don’t think I’m doing anything untoward, here is the code:
--list creation local listOptions = { width = 500, height = 240, scrollWidth = 768, scrollHeight = 1024, bottomPadding= 40, friction=0.935, onRowRender = onRowRender, hideScrollBar = true, hideBackground=true, maskFile = "imageSheets/score\_mask.png" } scoresList = widget.newTableView(listOptions) --add some rows for i=1,#hiScores,1 do scoresList:insertRow { rowColor=rowColor, lineColor={255,0,0,0}, onRender=onRowRender, rowHeight=40, id=hiScores[i], onEvent = nil } end --then when I want to auto scroll the table I try to use: local currentY = scoresList:getContentPosition() scoresList:scrollToY(currentY - 100,0)--this line is where the error occurs --or even just this scoresList:scrollToY(100, 0)
But I always get the same error on the scrollToY function, but I don’t know why.

