🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing displaying value with TDBComboBox

#235
From: Star
Date: Thu, 26 Jul 2007 14:17
25 lines
1916 bytes
Thanks a lot, Giuliano. I'll try that.

Giuliano wrote:
> Il Wed, 25 Jul 2007 15:04:59 -0400, Star <noemai@noemail.com> ha scritto:
> 
>> Hi,
>>
>> I am using a TDBComboBox control for displaying certain field from a 
>> table in a db. The possible values 0..255
> [snip]
>> Is there an easy way of doing that?
> 
> Hi,         
> 
>    have a look at "calculated fields". Create one of that and set the OnGetText and
> OnSetText events with appropriate code. 
> Upon displaying, you have to show a modified version of the value of the real data field.
> When you modify the calculated field, you have to reflect the changes onto the data field,
> obviously after you have made the appropriate calculations. 
> This should work fine, especially if you hide the underlying field, setting his Visible
> property to false.
> 
> Regards
> 
> Giuliano
Technical Details
Message-ID: <46a8ad43$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!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
References: <46a79f0e$1@newsgroups.borland.com> <f6iga350e5b558a04t59ikapeavdbk13fm@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,5798a535e4b2a09d
X-Google-Attributes: gid10698b,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 26 Jul 2007 10:17:46 -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: Re: Changing displaying value with TDBComboBox
References: <46a79f0e$1@newsgroups.borland.com> <f6iga350e5b558a04t59ikapeavdbk13fm@4ax.com>
In-Reply-To: <f6iga350e5b558a04t59ikapeavdbk13fm@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 70.91.64.254
Message-ID: <46a8ad43$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185459523 70.91.64.254 (26 Jul 2007 07:18:43 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!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