dbTalk Databases Forums  

closing paradox table

comp.databases.paradox comp.databases.paradox


Discuss closing paradox table in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dan
 
Posts: n/a

Default closing paradox table - 04-14-2006 , 10:21 AM






I am opening a form that is attached to a paradox table. When I exit or
close() the form I want to delete the table. The table is located in the
users private folder. If I try to delete it, it says it is 'cannot perform
this operation with table open'. Well I don't have the form open, so why am
I getting this error and why can't I delete the table.

Thanks for any help.
Dan



Reply With Quote
  #2  
Old   
Thies Grimm
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 10:39 AM






Hi Dan,

if it is a temporary table, just name it like __mytable.db.

Paradox is deleting tables automaticly when you close it.

The form can't delete the table, because it is attached to the table. so
if You want to go this way, first get the table out of your datamodel
and then delete it.

Thies


Dan schrieb:
Quote:
I am opening a form that is attached to a paradox table. When I exit or
close() the form I want to delete the table. The table is located in the
users private folder. If I try to delete it, it says it is 'cannot perform
this operation with table open'. Well I don't have the form open, so why am
I getting this error and why can't I delete the table.

Thanks for any help.
Dan



Reply With Quote
  #3  
Old   
Egbert Babst
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 11:03 AM



Dan,
as Thies said. But then you might have some problems with the uiObject that
was bound to the table.
Wouldn't empty() the table do the same thing for you? And then it doesn't
matter that it is part of your datamodel.

Egbert, 18:03 in Germany

"Dan" <megaflex (AT) bellsouth (DOT) net> schrieb im Newsbeitrag
news:443fbdf2 (AT) pnews (DOT) thedbcommunity.com...
Quote:
I am opening a form that is attached to a paradox table. When I exit or
close() the form I want to delete the table. The table is located in the
users private folder. If I try to delete it, it says it is 'cannot perform
this operation with table open'. Well I don't have the form open, so why am
I getting this error and why can't I delete the table.

Thanks for any help.
Dan




Reply With Quote
  #4  
Old   
Dan
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 11:45 AM



I open a selection form that has several display choices. I select choice
one to open a form associated with a newly created table (___shdwtble.db)
and an SQL created table for a client server database (__updatetag.db). The
form is created from a SQL server and placed in my private folder and the
form is displayed, OK. There are two tables in the data model and linked
together in a one to many relationship. I exit the form, back to my calling
form and I cannot delete either table, even though the form is closed. If I
select "Close All" in the development software, I can delete the tables
manually. The reasons I want to delete it so the table will be recreated and
refresh the data when I return to the choice one display. Does that clarify
the situations?

Thanks for you comments,
Dan
"Thies Grimm" <thies.grimm (AT) epost (DOT) de> wrote

Quote:
Hi Dan,

if it is a temporary table, just name it like __mytable.db.

Paradox is deleting tables automaticly when you close it.

The form can't delete the table, because it is attached to the table. so
if You want to go this way, first get the table out of your datamodel and
then delete it.

Thies


Dan schrieb:
I am opening a form that is attached to a paradox table. When I exit or
close() the form I want to delete the table. The table is located in the
users private folder. If I try to delete it, it says it is 'cannot
perform this operation with table open'. Well I don't have the form open,
so why am I getting this error and why can't I delete the table.

Thanks for any help.
Dan



Reply With Quote
  #5  
Old   
Tony McGuire
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 12:24 PM




Quote:
refresh the data when I return to the choice one display. Does that clarify
the situations?

Are you using Paradox the Application? Or just Paradox the Table Format?


--

Tony McGuire
"It's not about having enough time. It's about priorities."
___________________________



Reply With Quote
  #6  
Old   
Dan
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 12:45 PM



I am using a paradox table in a form view. It is an application.

Dan

"Tony McGuire" <png.paradoxcommunity@com> wrote

Quote:
refresh the data when I return to the choice one display. Does that
clarify
the situations?


Are you using Paradox the Application? Or just Paradox the Table Format?


--

Tony McGuire
"It's not about having enough time. It's about priorities."
___________________________




Reply With Quote
  #7  
Old   
Tony McGuire
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 01:04 PM




"an" application.

But is it Paradox?

Or, perhaps, Delphi?

Are you trying to delete the table with code? Through a feature in the
application? Windows Explorer?


--

Tony McGuire
"It's not about having enough time. It's about priorities."
___________________________


Reply With Quote
  #8  
Old   
Dan
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 02:32 PM



I am trying to delete in code Opal. ie- if fs.findfile() then fs.delete().
It doesn't delete in code, I try to delete from paradox file display for
priv folder also. If I select "Close All" even though there is nothing
showing in Paradox, I can delete the file. Something seems to be holding it
open and I can't figure out how to close it.

Thanks

Dan


"Tony McGuire" <png.paradoxcommunity@com> wrote

Quote:
"an" application.

But is it Paradox?

Or, perhaps, Delphi?

Are you trying to delete the table with code? Through a feature in the
application? Windows Explorer?


--

Tony McGuire
"It's not about having enough time. It's about priorities."
___________________________




Reply With Quote
  #9  
Old   
Liz McGuire
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 03:19 PM



Try using a table variable to delete. See the table methods in
ObjectPAL help.

NOTE: You will need to close the form or remove the table from the
data model and close any table, UIObject or TCursor variables that
were attached to the table.

Liz


Dan wrote:
Quote:
I am trying to delete in code Opal. ie- if fs.findfile() then fs.delete().
It doesn't delete in code, I try to delete from paradox file display for
priv folder also. If I select "Close All" even though there is nothing
showing in Paradox, I can delete the file. Something seems to be holding it
open and I can't figure out how to close it.

Thanks

Dan

Reply With Quote
  #10  
Old   
Dan
 
Posts: n/a

Default Re: closing paradox table - 04-14-2006 , 04:06 PM



Evidently I was "Hiding" a form attached to the table and couldn't see it,
i.e. "hide". This was causing the problem. Thanks for the help.

I need to get a real job!

Thanks
Dan

"Liz McGuire" <liz (AT) paradoxcommunity (DOT) com> wrote

Quote:
Try using a table variable to delete. See the table methods in
ObjectPAL help.

NOTE: You will need to close the form or remove the table from the
data model and close any table, UIObject or TCursor variables that
were attached to the table.

Liz


Dan wrote:

I am trying to delete in code Opal. ie- if fs.findfile() then
fs.delete().
It doesn't delete in code, I try to delete from paradox file display for
priv folder also. If I select "Close All" even though there is nothing
showing in Paradox, I can delete the file. Something seems to be holding
it
open and I can't figure out how to close it.

Thanks

Dan



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.