I have this code:
The messagebox shows that the resuts ARE in fact beeing retrieved from the sql database, but the spinner does NOT get populated...Nor even when adding a value using Spinner1.Add("Paulo") it does NOT get Added...why??
EDIT: I added as a Title to the msgbox the Spinner1.Size and it seems that the Items are in fact being added to the spinner, but when I tap the Spinner I get only an empty row at the midle of my screen.!
Am I missing something?
B4X:
Spinner1.Initialize("Categories")
SQL1.Initialize(File.DirInternal,"Equations.s3db",False)
Cursor1 = SQL1.ExecQuery("SELECT Name FROM Categories")
Dim Item As String
Spinner1.Add("Paulo")
For i = 0 To cursor1.RowCount - 1
Cursor1.Position = i
Item = Cursor1.GetString("Name")
Msgbox(Item,"")
Spinner1.Add(Item)
Next
The messagebox shows that the resuts ARE in fact beeing retrieved from the sql database, but the spinner does NOT get populated...Nor even when adding a value using Spinner1.Add("Paulo") it does NOT get Added...why??
EDIT: I added as a Title to the msgbox the Spinner1.Size and it seems that the Items are in fact being added to the spinner, but when I tap the Spinner I get only an empty row at the midle of my screen.!
Am I missing something?
Last edited: