Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


combobox and sqlite


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-22-2008, 08:07 AM
Senior Member
 
Join Date: Jul 2007
Posts: 139
Default combobox and sqlite

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



Thanks in advance.
__________________
Using 6.30
dennishea
Reply With Quote
  #2 (permalink)  
Old 03-22-2008, 09:34 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,817
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, 09:48 AM
Senior Member
 
Join Date: Jul 2007
Posts: 139
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.30
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox Raytracer Italian Forum 3 04-15-2008 04:15 PM
IgnoreKey in ComboBox? kyto Questions & Help Needed 1 09-11-2007 04:51 AM
ComboBox.Value property Cableguy Questions & Help Needed 3 07-01-2007 02:09 PM
ComboBox propterty Scubaticus Basic4ppc Wishlist 2 06-28-2007 07:47 PM
ComboBox Value RandomCoder Basic4ppc Wishlist 5 06-09-2007 02:07 PM


All times are GMT. The time now is 12:45 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0