Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing/sorting problem...
Message
From
18/01/2005 15:38:59
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00978295
Message ID:
00978304
Views:
21
Sergey,

Yes, #1 came to my mind. I already have a second table that holds a sizing matrix that is in the proper order, but the myriad of places that I would have to use this 2nd table would break too many things. Though I could add a second field to my existing main table and add the sortorder value to it on inserts via lookup ... hmmmmm

Option #2 I have to think about. I like the first option, it gives me something indexable other than 'size'. Thanks.

>I would create a table with two columns: Size C(5) and SortOrder I and use it for sorting. Another way is to store sizes in a string in proper order and use AT() as sortorder.
lcSizes = ",XS,S,M,L,XL,2XL,...,"
>? AT([,] + ALLTRIM(size) + [,], lcSizes)
>
Previous
Reply
Map
View

Click here to load this message in the networking platform