🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #233

Changing displaying value with TDBComboBox

#233
From: Star
Date: Wed, 25 Jul 2007 19:04
16 lines
1370 bytes
Hi,

I am using a TDBComboBox control for displaying certain field from a 
table in a db. The possible values 0..255

What I need to do is instead of displaying the real value from the db,
I have to show that value+1.
e.g. If we have in the database the value 2, the combobox should display 3.

Besides that, if the user select that 3 from the drop-down list, the
value that should be stored in the database will be 2.

Is there an easy way of doing that?

Thanks
Technical Details
Message-ID: <46a79f0e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,5798a535e4b2a09d,start
X-Google-Attributes: gid10698b,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 25 Jul 2007 15:04:59 -0400
From: Star <noemai@noemail.com>
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Changing displaying value with TDBComboBox
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 70.91.64.254
Message-ID: <46a79f0e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185390350 70.91.64.254 (25 Jul 2007 12:05:50 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail