COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button
ADVANCE VB SCRIPT CLASS OBJECT
Class Objects
Class is a construct that is used to define a unique type. Like
Object Oriented Programming, VbScript 5.0 supports the creation
of classes and it is very similar to writing COM objects with VB.
Class is simply the template for an object and we instantiate an
object to access the properties and methods of it. Classes can
contain variables, properties, methods or events.
Syntax
VBScript classes are enclosed within Class .... End Class
'Defining the Class
Class classname 'Declare the object name
...
End Class
' Instantiation of the Class
Set objectname = new classname
No comments:
Post a Comment