New
The New statement allows you to create new instances
of a class. Usually, this class will be one that you have defined
through ASP code (using the Class statement).
You don't need to worry about destroying instances of your class
since ASP will destroy them automatically for you once they go out
of scope. If you do wish to destroy an object, you can set it
equal to nothing.
Class Shape Private m_sColor Public Property Get Color() Color = m_sColor End Property
Public Property Let Color(sColor) m_sColor = sColor End Property End Class
Dim oCircle Set oCircle = New Shape oCircle.Color = "Red" Response.Write "My circle is " & oCircle.Color
' destroy the circle
Set oCircle = Nothing
|
 |

|