Just for the record I finally dedicated several hours to nailing a bug in the way my custom menu displayed (or not).
The short version is I fixed it by creating a new form and simply cutting and pasting the various objects. The fact is there was NOTHING wrong, except my form had somehow become corrupted (my conclusion since the new one has all the same pieces).
The problem was my custom menu that I use throughout my application, and which had been working, would not display when opened from my Start form. The menu simply opened various forms, closing the one it left behind to conserve resources, except the Start menu which is always open. I could switch focus using the windows 98 controls, and when I switched back this way the custom menu appeared.
I spent hours messing with and removing Oninit, OnActivate, Onkey and OnDeactivate scripts with confusing inconsistent results. Finally I rebuilt my Start form and all is well.
My favorite cure has been to compact the database. It still is, but I am learning that sometimes it is necessary to simply recreate work that has already been done. It bothers me that there was nothing wrong except somewhere in the form a little glitch had crept in, so I thought I would share this experience for those on thier way "up". Sometimes when things go wrong it is not available to you to fix by compacting or debugging - you actually have to rebuild, even with no changes!
The short version is I fixed it by creating a new form and simply cutting and pasting the various objects. The fact is there was NOTHING wrong, except my form had somehow become corrupted (my conclusion since the new one has all the same pieces).
The problem was my custom menu that I use throughout my application, and which had been working, would not display when opened from my Start form. The menu simply opened various forms, closing the one it left behind to conserve resources, except the Start menu which is always open. I could switch focus using the windows 98 controls, and when I switched back this way the custom menu appeared.
I spent hours messing with and removing Oninit, OnActivate, Onkey and OnDeactivate scripts with confusing inconsistent results. Finally I rebuilt my Start form and all is well.
My favorite cure has been to compact the database. It still is, but I am learning that sometimes it is necessary to simply recreate work that has already been done. It bothers me that there was nothing wrong except somewhere in the form a little glitch had crept in, so I thought I would share this experience for those on thier way "up". Sometimes when things go wrong it is not available to you to fix by compacting or debugging - you actually have to rebuild, even with no changes!
Comment