Sideway from Sideway

Draft for Information Only


VBScript Object Elements
 Predefined Elements

VBScript Object Elements

Unlike a procedure, an Object is a wrapper of things. In general, things inside an Object are always considered as the element of an Object. Although variables, Subs, and Functions used inside an Object have the same properties, and scope and lifetime, the variables, Subs, and Functions must be accessed through the Object wrapper. In order to hide information and data of things behind an Object, two typical elements, Method and Property, are used to manipulate an Object. Besides, two additional elements, Collection and Event, are also added to increase the functionality of an Object.


A Methoud is usually defined as an action that an Object can perform. A Method is actually an embedded function or procedure inside the object used to manipulate the actions or behaviors of an Object.  A Method can be Private procedures for internal used by the Object only or Public functions that can be accessed or operated by external assignment also. For example, strVar =objObject.MethodName(strVar), objObject.MethodName(strVar).


A Property is usually defined as an attribute, or an aspect of the behavior of an Object. A Property is basically an embedded function or procedure inside an Object used to manipulate the data or parameters of an Object. In fact, Property is always used to manipulate the variable of an Object. For example, strMyVar = objObject.Property="This is a string variant"


A Collection is a set of ordered things that do not have to be of the same data type. A Collection is a flexiable array with the index number of an item element is updated when an item element is added or removed. The indexed number of the elements of a Collection usually begins at 1. However the indexed number of a Collection Array may begins at 0.


In general, an Event is a trigger action due to the status change caused by user actions, applications or the operating system.

Sometimes, an Event is also refered to an Event response, that is an associated routine of which triggered by an Event action.

Predefined Elements

Some typical predefined Elements are

  • Class Object:
    • Event action:
      • Initialize Event
      • Terminate Event
    • Event reaction
      • Class_Initialize Subroutine
      • Class_Terminate Subroutine


ID: 180500006 Last Updated: 2018/5/6 Revision:


Home (5)



HBR (3)



Hobbies (7)


Chinese (1097)

English (336)

Reference (66)


Hardware (149)


Application (187)

Digitization (24)

Numeric (19)


Web (618)new




Knowledge Base

Common Color (SC)

Html Entity (Unicode) (SC)

Html 401 Special (SC)

OS (388)new

MS Windows

Windows10 (SC)

.NET Framework (SC)

DeskTop (7)



Formulas (8)

Number Theory (206)

Algebra (20)

Trigonometry (18)

Geometry (18)

Calculus (67)

Complex Analysis (21)


Tables (8)


Mechanics (1)

Rigid Bodies

Statics (92)

Dynamics (37)

Fluid (5)

Fluid Kinematics (5)


Process Control (1)

Acoustics (19)

FiniteElement (2)

Biology (1)

Geography (1)

Copyright © 2000-2019 Sideway . All rights reserved Disclaimers last modified on 10 Feb 2019