?
Solved

Phantom code left after delete

Posted on 2003-11-25
9
Medium Priority
?
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
9 Comments
 
LVL 2

Accepted Solution

by:
ksi2001 earned 160 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 80 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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
 
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

650 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