Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

combobox and sqlite

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-22-2008, 09:07 AM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
Awards Showcase
Beta Tester 
Total Awards: 1
Default combobox and sqlite

How do you load one col of sqlite into combobox. Any suggestions welcome.



Thanks in advance.
__________________
Using 6.90
dennishea
Reply With Quote
  #2 (permalink)  
Old 03-22-2008, 10:34 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Something like: (Reader is a DataReader object and cmb is a ComboBox)
Code:
cmd.CommandText = "SELECT col FROM table"
Reader.Value = cmd.ExecuteReader
Do While reader.ReadNextRow = True 
    cmb.Add(reader.GetValue(
0))
Loop
Reader.Close
Reply With Quote
  #3 (permalink)  
Old 03-22-2008, 10:48 AM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks Erel.

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.

__________________
Using 6.90
dennishea
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox Value RandomCoder Basic4ppc Wishlist 7 11-18-2011 12:08 PM
ComboBox ceaser Questions (Windows Mobile) 2 08-25-2008 04:52 PM
AddEvent with ComboBox erik58 Questions (Windows Mobile) 2 05-24-2008 03:38 PM
ComboBox Raytracer Italian Forum 3 04-15-2008 05:15 PM
ComboBox.Value property Cableguy Questions (Windows Mobile) 3 07-01-2007 03:09 PM


All times are GMT. The time now is 12:36 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0