Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Using Set object = Nothing


Message #1 by "Philip.Ware" <Philip.Ware@e...> on Thu, 15 Jun 2000 13:46:35 +0100
I am not sure of the implications of how you have done it, but a better
method is as follows:

Sub OpenNewForm()

	dim frmNewOne as ViewProblem

	set frmNewOne = new ViewProblem
	frmNewOne.Show

End Sub


-----Original Message-----
From: Philip.Ware [mailto:Philip.Ware@e...]
Sent: 15 June 2000 13:47
To: professional vb
Subject: [pro_vb] Using Set object = Nothing 


Hi,

Accidentaly I found that by loading a window, and then setting the window
object to "Nothing" I could create more instances of that window and its
controls.

Ie.  

ViewProblem.show
Set ViewProblem = Nothing


I can now have multiple windows open for different "problems"

Is this correct? and can I use this? Can this method used like this? 

Thanks,
Phil.


  Return to Index