![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
refresh the data when I return to the choice one display. Does that clarify the situations? |
#6
| |||
| |||
|
|
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." ___________________________ |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
"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." ___________________________ |
#9
| |||
| |||
|
|
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 |
#10
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |