Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to insert data into Grid in descending order
Message
From
03/11/2000 08:41:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/11/2000 10:54:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00437133
Message ID:
00437555
Views:
15
>My data (Cursor) e.g
> No. Date Name Qty
> 1. 01/02/2000 ABC 12
> 2. 02/02/2000 NHG 13
> 3. 04/05/2000 JDHDJ 14
> 4. 06/05/2000 DAAF 15
>
>
>I want this data displayed in grid in descending order. the data will be eg.
>
> No. Date Name Qty
> 4. 06/05/2000 DAAF 15
> 3. 04/05/2000 JDHDJ 14
> 2. 02/02/2000 NHG 13
> 1. 01/02/2000 ABC 12
>
>So When I append data into the grid, I want the data displayed on the top.
>Is that possible to do so? I am using VFP5.0a, coding Will be Appreciated.
>Thanks. Sorry for my english.

Carmen,
IOW you want last entered dispalyed first ? If so create an index on recno() :
index on recno() tag recorder

Then just set the order desc :

set order to tag recorder descending

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
Next
Reply
Map
View

Click here to load this message in the networking platform