Hi Ted,
This is part of an auto-conversion of data from previous versions of the
software.
Depending on how up to date the app is, users could:
- not have the table 'Zardoz'. Setup will copy it and it will be part of the
DBC (but their own DBC won't know this yet)
- have it as a free table (from a more recent version of the software.
In this case, setup, will not overwrite it)
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
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Roche
Sent: 2007-01-24 1:21 PM
To: [EMAIL PROTECTED]
Subject: Re: InDbc and Free Table
On 1/24/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> There must be something obvious I'm missing.
>
Me, too. I'm not grasping exactly what it is you are trying to
accomplish or what the problem is. Perhaps ADBObjects() is the answer,
though.
--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
[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.