Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I tell which indexes are used in a project?
Message
From
14/05/2003 19:43:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00788312
Message ID:
00788438
Views:
26
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform