Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto check for existing index
Message
 
To
14/10/2000 00:22:21
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00429490
Message ID:
00429491
Views:
14
Peter,

Indexes in VFP are always in only one order. The ascending or descending sequence just controls the way VFP reads the index. For your situation, assuming your index tag is named DateOrder, you would in y9our button's click event;
* Button's click
IF DESCENDING("DateOrder")
   SET ORDER TO DateOrder ASCENDING
ELSE
   SET ORDER TO DateOrder DESCENDING
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform