Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box Ordering
Message
From
10/06/2003 05:16:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00798259
Message ID:
00798267
Views:
24
>Good Morning,
>
>I have a list box with a number of records which is a result of an SQL query. I have 2 buttons labelled UP and DOWN. what I would like to do is when I click on a record in a list box and then click UP or DOWN the record will move to the required position in the list box.
>
>Does anybody have any ideas?
>
>Many Thanks

You can't do that with SQL rowsources. You should change the order in source cursor and requery. To do that you might have a 'sorter' field in source and change its value (use a readwrite cursor).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform