🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TDBLookupComboBox reset

#5459
From: William Olson
Date: Thu, 10 May 2001 13:46
35 lines
2059 bytes
Giuliano,

While this is a powerful example of how to affect the database, I was
looking for something a little different.

When you first see you DBLooupComboBox displayed on a form nothing is
showing in the dropdown.  That is what I am trying to accomplish.  I want to
reset it after a query so that it looks empty even though everything is
still on the list when you click on it.

After a user selects something, I have been unable to get the dropdown to go
back to the intial state.

Thank you for the great code example.  I am going to keep that for future
reference.

William


"Giuliano" <gcardinali@remove.adhoc.net> wrote in message
news:3afa7e64.1695948@newsgroups.borland.com...
> On 9 May 2001 18:18:20 -0700, "wo" <wolson@technologyplan.com> wrote:
>
> >is there a way to reset the TDBLookupComboBox to "" after the user
selects an item?
> [snip]
>
> TDataSource* DataSource( DBLookupComboBox->DataSource );
> TDataSet* DataSet( DataSource->DataSet );
> DataSource->Edit();
> DataSet->FieldByName( DBLookupComboBox->DataField )->Clear();
>
> Ciao!
>
> Giuliano
Technical Details
Message-ID: <3afa9c6e$1_1@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3af9ec5c$1_2@dnews> <3afa7e64.1695948@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,5e9344a416ac1b20
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-05-10 06:52:10 PST
Reply-To: "William Olson" <wolson@technologyplan.com>
From: "William Olson" <wolson@technologyplan.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3af9ec5c$1_2@dnews> <3afa7e64.1695948@newsgroups.borland.com>
Subject: Re: TDBLookupComboBox  reset
Date: Thu, 10 May 2001 08:46:30 -0500
Lines: 37
Organization: Technology Planners
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 206.40.97.21
Message-ID: <3afa9c6e$1_1@dnews>
X-Trace: dnews 989502574 206.40.97.21 (10 May 2001 06:49:34 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews