I’m not convinced there is any such pragma as ‘reset’
Since you ARE using me, the line that tells the compiler not to complain that you arent using ‘me’ can be removed. I’d start by removing both pragma lines
Finally, me more normally refers to a control on a window, rather than the window itself.
I dont see the point in issuing a close command in the middle of a close event, since thats what is happening anyway.
So also remove the me.close line.
Finally, the line const CurrentMethodName = “frmDataEntry.PushNext.Close”
Looks like one that is used for exception handling: if an exception occurs, the constant can be used to say which method was being used at the time.
Since this constant is declared inside the event, it will go out of scope when the event is complete.
And since nothing in the event is using it, you can delete that row too.
So… remove all that code and you’ll be fine, I guess!
I thought of that… so I deleted the close event… even disabled the close button on the window… even if I close it from the main window or press Ctl-q, I still get the same overflow error…