I dont know what Im doing wrong. I retrieving some data from a SQL database in Android and Im triyng to put in a text box. But emulator give me a RUNTIME ERROR:
Runtime error
C:\Users\drago\Desktop\Forca - Android\main.lua:62: attempt to concatena
te local 'textfield' (a nil value)
stack traceback:
[C]: ?
C:\Users\drago\Desktop\Forca - Android\main.lua:62: in function 'onRelea
se'
What Im doing wrong? I KNOW is something related to types, but I dont know what. This is the code:
[lua] local textbox = native.newTextBox( 0, 300, 200, 50 )
textbox.hasBackground = false
textbox:setTextColor(255,0,255)
for row in db:nrows(“SELECT * FROM hangman”) do
textfield = textfield … row.palavras
end
textbox.text = textfield[/lua]
textfield is a local variable. [import]uid: 9133 topic_id: 6363 reply_id: 306363[/import]
