>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
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)