Something like: (Reader is a DataReader object and cmb is a ComboBox)
B4X:
cmd.CommandText = "SELECT col FROM table"
Reader.Value = cmd.ExecuteReader
Do While reader.ReadNextRow = True
cmb.Add(reader.GetValue(0))
Loop
Reader.Close
I was checking online and forgot about the help file in b4p. I've used commandtext and connection but not datareader yet. Thanks for reminding me about the 3rd object in sqldevice.dll.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.