Results 1 to 4 of 4

Thread: Clear a public object without destroying it

  1. #1

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Question Clear a public object without destroying it

    Hello.
    Here's my problem:
    I invoke this object from a DLL ("mdiform1.Motor.ObjDocLiq") in a mdiform. This object is declared as Public in the dll
    ("Public ObjDocLiq As New GcpBE601.GcpBEDocumentoLiq")

    Then, I need to use it on other childforms

    My question is:I need to clear the object content without destryoing it.
    Can I use "set mdiform1.Motor.ObjDocLiq =Nothing"?
    If you got any way to do it, please tell me.

    Thank you all.

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Clear a public object without destroying it

    Well have you tried that yet? Most likly it will work
    My usual boring signature: Something

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Clear a public object without destroying it

    Do you instantiate it with Set mdiform1.Motor.ObjDocLiq = New <something here>?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  4. #4

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Re: Clear a public object without destroying it

    I've tried that way but it fails with err...
    What I do is something like this:
    "Public Motor As New RaSBS.PriMotor",
    where RaSBS is my DLL and Primotor is a class of RaSBS.

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