Link to home
Start Free TrialLog in
Avatar of StuartOrd
StuartOrdFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Phantom code left after delete

Hi experts,
Again just a trivial thing really. If I enter code into an event and then decide that I got it all wrong and delete the code, the little icon in the objects list in the design pane remains shaded. Then if debugger is running and I pass over the event in Notes (eg a Postopen) the debugger stops on the empty step and I have to click Continue or Step into. Just a click, I know, but it's irritating. Any ideas how to reset the object to empty?
ASKER CERTIFIED SOLUTION
Avatar of ksi2001
ksi2001

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of StuartOrd

ASKER

Oh dear, that was TOO easy! You're right of course; I'd thought I'd hit problems if I deleted the sub and end sub.
Interestingly, on the form where I've just tried that out, there were 3 icons "lit". One is no longer (as desired), one other is lit (as expected), and the third was not lit despite there still being code in it!!! However saving the form and coming back in again restored it to 2 lit icons so all's well. Thanks.
I'm a stickler for detail, so I hope I got the points right - the screen now says accepted by qwaletee and assisted by ksi2001 whereas I felt the reverse was true and intended to point accordingly but it no longer says what I gave ...
Avatar of qwaletee
qwaletee

Yes, ksi got there first.  Use Community Suport to ask for a redistribution.
OK, have done. I realise my mistake now - I clicked both names thinking I needed to and so the last one clicked (ksi) was the one that was regarded as Accepted. I got it right on the next split question!
Thanks
:-) thanks guys