I have the following code to instantiate an object:
Private Sub butCreateCar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butCreateCar.Click
MyCar = New Car 'instatiate Car class as MyCar
SetMyCarProperties() 'associate user data with MyCar object
Question 1: If one of the properties for MyCar is not set yet (it can not pass validation included with Set), does the object MyCar gets created? I hope it doesn't.
Question 2: How can I check if MyCar is created at line marked by '???????????
This I need to have to execute "DisalbeControlsLevel(True)" if in fact the object is created. Something like:
If Not IsNothing(MyCar) Then