>I am trying to pack my tables when shutting down the application. I have the code in the ON SHUTDOWN procedure. When using FILE EXIT, which calls the SHUTDOWN procedure, it works fine. If I close the program using the X box it cannot find the table even though it is defined with a complete path. It calls the SHUTDOWN procedure. It just can't find the designated table. Is it possible that after closing with the X box Foxpro cannot open any tables?
No there isn't such a thing. If you have complete path and it's saying it doesn't exist then double check if it really exists. In all my cases VFP was right:)
PS: If it really exists this should work as the first 2 lines of main in code:
myCompletePath = "c:\Some Path\myTable.dbf"
use (myCompletePath)
Cetin