>>>i am using something like this
>>>select a
>>>use filename
>>>set index to
>>>commands
>>>(but right here i want to close it)
>>
>>OK, but you still shouldn't do the SELECT a.
>>
>>Try it this way:
>>
>>
>>SELECT 0
>>USE filename
>>SET INDEX TO ...
>>commands...
>>USE IN filename
>>
>
>
>Or even better,
>
>USE Table IN 0
>SET ORDER TO TAG MyTag
>
>then to close
>
>USE IN Table
That's OK as long as you don't expect the current workarea to be pointing to Table. It will still be pointing to where ever it was doing it this way. So then you'd need to specify SET ORDER TO TAG MyTag IN Table.