Re: Breaking a reference via code

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: M.L. Sco Scofield (Sco_at_ScoBiz.com)
Date: 07/29/04


Date: Wed, 28 Jul 2004 23:03:55 -0600

I'm not sure if you can break a reference or if you need to or want to.

Have you simply tried removing the reference using the References collection
to delete the reference?

Although this little one-liner will error if you try to single step it, it
does work when simply run:

  References.Remove References.Item("YourReferenceName")

Good luck.

Sco

"Lance McGonigal" <lancemcgoi@msn.com> wrote in message
news:unYIJ$MdEHA.2988@TK2MSFTNGP10.phx.gbl...
> Thanks all in advance for your help.
>
> Does anyone have some sample code to break a reference to an addin titled
> "LmLib". I set the reference each time I start the code but if the user
> moves the application it fouls up.
>
> On startup of the app I need to:
>
> 1. break the reference
> 2. add the reference back in from a file in the applications path titled
> LmLib.mde (I have this working).
>
> Thanks again.
>
>


Quantcast