Cursors you created wouldn't be closed with de.clostables so you should do a series of :
use in (cAliasName)
I wouldn't say a loop here because you may want to preserve some of them. If datasession is private they could be get rid of in one step also.
Cetin
>Thanks Cetin,
>
>Thats exactly what I was looking for...its taking awhile for me to learn all of these commands. One more quick question...the de.closetables closed all the tables, except the cursors that I created in the load event with create cursor command. Am I right in thinking that as well as issuing the de.closetables I would have to do a select "cursor name, use" for each cursor created before the return .f.?
>
>>Paul,
>>1) Set your DE.autoopen = .f. and if not returning .f., call thisform.de.opentables,
>>Or
>>2) Call thisform.de.closetables before returning .f.
>>Cetin