But isn't the FINALLY the proper place to evaluate loFreeTable?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Pearson Sent: 2007-01-24 1:55 PM To: [EMAIL PROTECTED] Subject: RE: InDbc and Free Table > What do you think of the Try/Catch in my other message? The test went ok. There are ways around using a Try/Catch, but I don't see a problem using them. * before copy of Zardoz If Indbc([Zardoz], [Table]) Free Table (goApp.cPathNet + [Data\Zardoz]) EndIf * Copy Free Zardoz table to correct location * Copy File -?- To (goApp.cPathNet + [Data\Zardoz]) Add Table (goApp.cPathNet + [Data\Zardoz]) I believe the loFreeTable object will only exist in the Catch before the Finally, I could be mistaken. Tracy > -----Original Message----- > So, I need to FREE Zardoz if it needs to be freed and then > add it to the DBC. > > ************************************** > If Not Indbc([Zardoz],[Table]) > Try > Free Table (goapp.cPathNet + [Data\Zardoz]) > Catch To loFreeTable > > Finally > If loFreeTable.ErrorNo = 1558 > * No DB > Else > * something else > Endif > > Add Table (goapp.cPathNet + [Data\Zardoz]) > Endif > ************************************** > > Without the Try/Catch, FREE TABLE was crashing if the table > was already FREE. > > Thanks, > > Henry [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

