General information
Category:
Coding, syntax & commands
To add to Edward's reply: it's because your close all closes one or more tables that are referenced in events that are firing as the form is destroyed.
If you use the DataEnvironment and have autoCloseTables set to .T. then you don't even need to worry about closing a form's tables.
Are you using a prg or form for your application's main object? I'd suggest a prg. I think it's easier to maintain the shutdown code.
If you haven't already, you might want to check out the Tastrade solution sample or application wizard for ideas on clean up code.
HTH
>Cannot access the selected table (Error 1152).
>I have a form with an Exit command button.
>This is the only code in the Exit button -
>THISFORM.Release
>CLOSE ALL
>QUIT
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only