Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript classes, Main routine

Status
Not open for further replies.

vasah20

Programmer
Feb 16, 2001
559
US
Is there a Main routine that gets called in VBScript classes?

Something like:
dim obj
set obj = New MyClass
Response.write obj("something") 'is there any way this can be implemented?

Thanks in advance.
leo
 
By "main" you really mean "Default", right?
Code:
Declares, in a Class block, the name, arguments, and code that form the body of a Property procedure that gets (returns) the value of a property.

[Public [Default] | Private] Property Get name [(arglist)]
   [statements]
   [[Set] name = expression]
   [Exit Property] 
   [statements]
   [[Set] name = expression]
End Property
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top