Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incremental search on numeric
Message
De
04/04/2003 12:02:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00774073
Message ID:
00774083
Vues:
14
>>>How might one go about this?
>>>The field is: SkNo N(4,0)
>>>
>>>Index on SkNo Tag SkNo
>>>Index on STR(SkNo,4,0) Tag SkNoA
>>>
>>>Data:
>>> 250
>>> 350
>>> 680
>>>6500
>>>
>>>Letting the user type, seek on the tag SkNo requires the full number to be typed; seek on the tag SkNoA brings you to 6500 before 680. What index could be created to get to 680 first and 6500 second?
>>>
>>>Thanks,
>>
>>padl(num,width,'0') ?
>>Cetin
>
>Cetin,
>
>I thought about this. Wouldn't this then force the individual to type leading 0's?

Yes, but would mean more meaningfull to them too. You could pad behind the scenes ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform