Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Index with ASC and DESC field
Message
From
31/01/2006 16:35:55
 
 
To
31/01/2006 16:25:39
Eric Gauthier
Transcontinental Interweb (Montreal)
Boucherville, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01092059
Message ID:
01092069
Views:
18
This message has been marked as the solution to the initial question of the thread.
>HI all
>
>here my question
>
>I want to create an index in a dbf fiel (through data session) with one field(integer) in ascending mode and another one (character) in descending mode like this SQL command :
>
>select * from table1 order by field1 , field2 desc
>
>where field1 is asc and fields desc
>
>
>thx for the help ;)
>
>Eric Gauthier
INDEX ON BINTOC(field1)+CHR(255-ASC(field2)) .. ASC
INDEX ON BINTOC(-field1)+field2 .. DESC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform