🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TDBLookupListBox - Moving items in list

#754
From: John Scott
Date: Tue, 05 Apr 2005 15:45
35 lines
1999 bytes
Add another field to the dataset and use the data in this field to 
sort the data in the dataset. You can then manipulate the data in this 
field to change the sort order.

John
"Daryl" <developeracc@hotmail.com> wrote in message 
news:42525622@newsgroups.borland.com...
>
> Cross post - no responses from Compoment Using list...
>
> I would like to know if it is possible to allow a user to select a 
> record and then move its position in the list (either up or down) by 
> use of a button click.  Of course this list is derived from a 
> dataset.
>
> Example:
> List contains.
> Cars    12
> Boats    10
> Bikes    2
>
> Actions:
> The user selects (highlights) Bikes  2
> The user clicks the MOVE UP button
>
> Outcome:
> The List now reads, and Bikes    2 is still highlighted.
> Cars    12
> Bikes    2
> Boats    10
>
> Any help would be good.
>
> thanks
> daryl 
Technical Details
Message-ID: <4252b2b9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42525622@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c95d01d80e9ee5ae
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John Scott" <jscott@kw.igs.net>
Newsgroups: borland.public.cppbuilder.database.ado
References: <42525622@newsgroups.borland.com>
Subject: Re: TDBLookupListBox - Moving items in list
Date: Tue, 5 Apr 2005 11:45:57 -0400
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 216.16.227.161
Message-ID: <4252b2b9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112715961 216.16.227.161 (5 Apr 2005 08:46:01 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail