Solved

Phantom code left after delete

Posted on 2003-11-25
9
198 Views
Last Modified: 2013-12-18
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?
0
Comment
Question by:StuartOrd
  • 4
  • 2
  • 2
9 Comments
 
LVL 2

Accepted Solution

by:
ksi2001 earned 40 total points
ID: 9817444
remove the whole event code including   'sub' / 'end sub'

if the icon is still there close/save the form in the designer. Icon should disappear
0
 
LVL 31

Assisted Solution

by:qwaletee
qwaletee earned 20 total points
ID: 9817865
The icon often remain "lit" until you exit the form/view/etc that contains the code, and re-open it.  ALso, if there is even a space left in the event, it will not be treated as empty.  And the containg SUB delimiters DO count as code.
0
 

Author Comment

by:StuartOrd
ID: 9820403
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.
0
 

Author Comment

by:StuartOrd
ID: 9820432
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 ...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 31

Expert Comment

by:qwaletee
ID: 9826962
Yes, ksi got there first.  Use Community Suport to ask for a redistribution.
0
 

Author Comment

by:StuartOrd
ID: 9827971
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!
0
 

Author Comment

by:StuartOrd
ID: 9830134
Thanks
0
 
LVL 2

Expert Comment

by:ksi2001
ID: 9832346
:-) thanks guys
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now