DarrenWard
IS-IT--Management
I have several forms that are capable of calling each other.
Some of the forms share the use of tables, other forms use tables that are exclusive to it's self, and other forms use a combination of both.
I open the tables in the FormSet Init event. And use :-
if Used("TableName"
= .f.
use "TableToUse" in 0 order ..... alias TableName
endif
When a form closes I am trying to close any tables that are no longer required (given that the form could have been called by another form that requires some tables). So if I recorded what tables were opened for thisform can I just close them? I can only find a way of closing all tables not just one.
Is this the best way to handle the tables? or should I just open all of them at the start and have done with it?
Dazz (Like Harry Potter's schooling, I can't do anything without a spell checker)
Some of the forms share the use of tables, other forms use tables that are exclusive to it's self, and other forms use a combination of both.
I open the tables in the FormSet Init event. And use :-
if Used("TableName"
use "TableToUse" in 0 order ..... alias TableName
endif
When a form closes I am trying to close any tables that are no longer required (given that the form could have been called by another form that requires some tables). So if I recorded what tables were opened for thisform can I just close them? I can only find a way of closing all tables not just one.
Is this the best way to handle the tables? or should I just open all of them at the start and have done with it?
Dazz (Like Harry Potter's schooling, I can't do anything without a spell checker)