Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET Order to two fields?
Message
From
28/08/2003 15:29:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/08/2003 15:25:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00824334
Message ID:
00824339
Views:
22
>Is it possible.
>I want to order by a field nad inside that another filed, just like
>select-sql SELECT ...WHERE...ORDER BY 1,2
>
>Thanks!
>Pablo

SET ORDER sets the order to an index, not a field. And the index can be on any expression, including more than one field.

For instance:
* Define structure: only once
use cliente
index on apellido + nombre tag nombres
use

* Use the data, every time you use your program
use cliente
set order to nombres
HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform