Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nasty index, any better ideas?
Message
 
To
06/08/2003 17:14:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00817470
Message ID:
00817484
Views:
19
>I don't have VFP at hand to test the following, so you might try it.
>
>
>index on str(val(CatNumber)) + CatNumber tag CatNumber
>
>
>Reasoning:
>
>val() should give 0 for codes that start with a letter. In this case, the second part should resolve ties.

Hi Hilmar, and thanks for the reply. I did try that along the way to my messy solution, but this puts all the alphas at the top (the numerics are ordered right, of course).

I thought the same logic as you were thinking should apply, but for some reason it doesn't...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform