Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CloseForm()
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
CloseForm()
Miscellaneous
Thread ID:
00896874
Message ID:
00896874
Views:
52
I have a maintenance form that when its open, it checks to see if selected other forms are still open. If they are, they need to be closed. I close them with:
THISFORM.oStatemanager.CloseForm('MyForm.scx')
However, the above MyForm.scx has a table that I added to the cde with:
m.oMyFree = THISFORM.oCde.AddCursor('TmpStuff')
Now, the problem is this: If I close the MyForm.scx the normal way (like clicking on the Windows X Close button), the above TmpStuff table is closed along with all the rest of the tables in the cde.

However, if the MyForm.scx is closed with THISFORM.oStatemanager.CloseForm('MyForm.scx'), then this table is not closed. I have verified this by opening this table in the command window, and it is in use. However, all the other tables in the CDE were closed as expected.

Anyone have a clue why this would be happening, and how to make sure it is closed if I need to use CloseForm()?

Mel Cummings
Next
Reply
Map
View

Click here to load this message in the networking platform