Vbs allow you to create classes. In each of them, you can code a constructor (
) and a destructor (
). My question is : Can I, as it can be done in java for example, define parameters for the constructor that should work this way :
Thanx for any help or clue to overlap this if not possible. Water is not bad as long as it stays out human body ;-)
Code:
public sub Class_Initialize
Code:
public sub Class_Terminate
Code:
class myClass
public sub Class_Initialize(param1)
'init class here using param1 value
end sub
end class
dim o_Class
Set o_Class = new myClass("This is the parameter I provide")
Thanx for any help or clue to overlap this if not possible. Water is not bad as long as it stays out human body ;-)