Results 1 to 4 of 4

Thread: remove all source when delete control

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    remove all source when delete control

    Hi
    Is there some way to remove all source relative to a control when I delete this conrol ?


    thx

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,733

    Re: remove all source when delete control

    Only manually.
    There are addins which provide this functionality, I believe MZTools is capable of this.

  3. #3
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,909

    Re: remove all source when delete control

    Quote Originally Posted by mutley View Post
    Hi
    Is there some way to remove all source relative to a control when I delete this conrol ?


    thx
    I'm not sure I know what this means. You mean everywhere the control is referenced in your source code? That would be nearly impossible. You could have expressions evaluated and variables set that have the control mentioned in the same statement. If you did this, there'd be a high chance that you'd actually break your source code. The only reasonable way would be to comment out those lines, but then you'd still have the problem of multi-statement lines (using the colon) where the control was mentioned in a statement prior to the last one on the line.

    What's wrong with just searching for the control's name and dealing with it yourself?
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  4. #4
    Fanatic Member Episcopal's Avatar
    Join Date
    Mar 2019
    Location
    Brazil
    Posts
    617

    Re: remove all source when delete control

    Elroy is right, but maybe you're referring to removing only the events generated by the control.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width