Last post Nov 10, 2008 10:34 PM by mbanavige
Nov 10, 2008 09:24 PM|tvb2727|LINK
Is there a way to set certain variables for the whole class? Or do you have to put the code in each Function or Sub routine. Is there something like a page_load() event.
Nov 10, 2008 09:31 PM|mbanavige|LINK
variables defined inside the class but outside of any methods are available throughout the entire class.
you could initialize them in the constructor - Sub New()
Nov 10, 2008 10:16 PM|tvb2727|LINK
this is what I did and when i called the class method it never hit the sub new(). Code is below:
Nov 10, 2008 10:34 PM|mbanavige|LINK
the constructor is only invoked when the class is first instantiated.
There is no class method that is automatically invoked each time you call a method of your class.