mloucel
Member
- Local time
- Yesterday, 16:31
- Joined
- Aug 5, 2020
- Messages
- 313
Hello Gurus..
I just came across a weird issue, and I don't know if anyone has a logical explanation for this weird behavior.
I have been working with Colin's @isladogs "Centre Form On Screen" which is a great article, until I was just checking how things moved around the module, just as curiosity, then I place a break point at this point since I got an error and I was trying to figure out what was it:
seems the error was in the second line, but I eventually found out the error was NOT in Colin's code but I forgot to remove this line from my own code:
once I close the program, and tried to run it again, for some weird reason my code stopped as a break point exactly at the code I mention first, thou the logic says that if I close the whole program and run it again ALL those break points will be removed.
Well that was not the case, I tried the old trick in the book:
Under Debug / Clear All Break Points or Ctrl+Shift+F9
Nothing seemed to work, I even restarted the computer, turn off the computer for 5 minutes, disconnected from the power, do a power clean, restart.
and nothing worked, it was stuck in the same place.
as a last resource, I deleted the Module, and import the module, instead of creating a new module, then copy and paste.
That solved the issue.
But the question still remained, WHY DID IT HAPPEN?, why was the break point never deleted, and NO, it didn't show the big dot while seeing the code, it was clean, except while running the routine, stopped there and on the header I can see the Code Break Point message.
Anyone has an explanation?
Maurice.
I just came across a weird issue, and I don't know if anyone has a logical explanation for this weird behavior.
I have been working with Colin's @isladogs "Centre Form On Screen" which is a great article, until I was just checking how things moved around the module, just as curiosity, then I place a break point at this point since I got an error and I was trying to figure out what was it:
Code:
DoCmd.MoveSize (lngWinWidth - frm.WindowWidth) \ 2, _
(lngWinHeight - frm.WindowHeight) \ 2
seems the error was in the second line, but I eventually found out the error was NOT in Colin's code but I forgot to remove this line from my own code:
Code:
DoCmd.MoveSize 6500, 3500
once I close the program, and tried to run it again, for some weird reason my code stopped as a break point exactly at the code I mention first, thou the logic says that if I close the whole program and run it again ALL those break points will be removed.
Well that was not the case, I tried the old trick in the book:
Under Debug / Clear All Break Points or Ctrl+Shift+F9
Nothing seemed to work, I even restarted the computer, turn off the computer for 5 minutes, disconnected from the power, do a power clean, restart.
and nothing worked, it was stuck in the same place.
as a last resource, I deleted the Module, and import the module, instead of creating a new module, then copy and paste.
That solved the issue.
But the question still remained, WHY DID IT HAPPEN?, why was the break point never deleted, and NO, it didn't show the big dot while seeing the code, it was clean, except while running the routine, stopped there and on the header I can see the Code Break Point message.
Anyone has an explanation?
Maurice.