Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seek() ??
Message
De
19/06/1998 03:13:51
 
 
À
18/06/1998 15:17:41
David Byrd
Baker, Byrd & Associates, Inc.
Austin, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00104059
Message ID:
00109808
Vues:
49
>When using two numeric values for a compound index it is typically better to separate the numbers with a delimiter, ie.
>
> ALLT(STR(field1)) + "-" + ALLT(STR(field2))
>
>Otherwise, your seeks will rarely get you the result you want. Note that the ALLTRIM() is used to reduce the size of the CDX file.
>
>-David

David:

A delimiter is absolutely necessary if you use allt() in your index expression because

allt(str(1)) + allt(str(23)) is exact than allt(str(12)) + allt(str(3))

But if you dont use allt() is not necesary at all. I use str(field1) + str(field2) in several tables and all my seeks works fine always.
Carlos.
Saludos,
A.G.P.
---------
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform