Peter,
I apologise if my typing mistake caused a confusion. Will never happen again.
Cheers,
Zoran
>>Nigel,
>>
>>I think, that is the best and safest way to close an alias.
>>
>>Any other solution like
>>Select (cAlias)..USE or USE IN cAlias
>>Will raise the run time error if cAlias is not used (opened).
>>
>>I am using the USE SELECT(cAlias) for 8 years now, and never had problems with it.
>>
>>Cheers,
>>
>>Zoran
>
>It was a Tip in Foxpro Advisor somewhere in 2002. Something like
>
use in iif( used(cAlias), cAlias, 0 )
>I was one of the people who reacted with an optimization. Actually, mine was
>
use in select(cAlias)
>Everybody agreed that it works, even according to theory.
>
>I'm surprised to notice that Zoran has been using it for over 8 years, although I wonder about the syntax USE SELECT(cAlias). :)