BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Storing Multiple Values

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students)
View previous topic :: View next topic  
Author Message
bar
Guest





PostPosted: Thu Mar 15, 2007 8:11 am    Post subject: Storing Multiple Values Reply with quote



Hello all,

I am using BCB 6, ADODataSet for database transactions. And Access as a
backend

I have a check list box.

I need to store the multiple selected values in the check list in the single
field of a table in the database.
and retreive again and show the selections in the checklist box.
Could anybody suggest good technique

Sorry if wroung groiup.

Thanks
SA
Back to top
Vladimir Stefanovic
Guest





PostPosted: Thu Mar 15, 2007 10:05 pm    Post subject: Re: Storing Multiple Values Reply with quote



Quote:
I have a check list box.
I need to store the multiple selected values in the check list in the
single field of a table in the database. and retreive again and show
the selections in the checklist box.
Could anybody suggest good technique

It's simple. You can consider check list box as a binary value:

[x] Item 1
[ ] Item 2
[x] Item 3
[x] Item 4

1011 bin = 11 dec

Just save 11 in a single DB field.

Unfortunately, I don't know of a DB-Aware component (should
be called TDBCheckListBox) that can read data for you, but it
definetly must exist somewhere.

Quote:
Sorry if wroung groiup.

There is ADO group.



--
Best Regards,
Vladimir Stefanovic
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.