Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I tell which indexes are used in a project?
Message
De
14/05/2003 19:43:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00788312
Message ID:
00788438
Vues:
25
>Thanks I'll have a look at that.
>
>Colin

Sergey's remark reminded me that indices can also be used indirectly in another way: via macro substitution or name expressions.

One simple example:
lnSortOrder = ThisForm.OpgSortOrder.Value && might also be a ComboBox
do case
case lnSortOrder = 1
  lcTag = "FirstName"
case lnSortOrder = 2
  lcTag = "LastName"
...
set order to (lcTag)
The SET ORDER TO uses a variable, and any automated tool will have trouble automatically finding all possible values this variable can have.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform