Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't Relase Form from Menu if Focus is in a Grid
Message
From
26/06/2003 14:31:01
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Can't Relase Form from Menu if Focus is in a Grid
Miscellaneous
Thread ID:
00804368
Message ID:
00804368
Views:
52
I have a form open with the focus in a grid. I click on a menu item that, in the course of processing, performs a _Screen.Forms[m.I].Release on the the form. The form does not release until I return from the processing of the menu item.

If the focus is on (as near as I can tell) any other control item (text box, edit box, page tab, control button, combobox, list box, etc.) the form is released immediately.

I have a very simple test form and program that demonstrates this.

In my application, when the user clicks on certain menu items I need to close any forms that are open and referencing a temporary table before I can delete that table. Through all my testing it worked fine. I never happened to have focus on a grid.

I have delivered the application to a client and it is generally working fine. Due to contract restraints have to bill out before June 30. Yesterday they finally demonstrated this bug to me in a reproducable manner and I have spent the last 6 hours figuring out what was going on.

I assume this problem will not be fixed in VFP7. I don't know if it is a problem in VFP8 as I haven't yet gotten VFP8.

Has anybody else seen this problem? Any suggestions for a workaround? I would rather not have to rework a large amount of my code on my dime to get around this bug.
Next
Reply
Map
View

Click here to load this message in the networking platform