Sideway
output.to from Sideway





Draft for Information Only

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.

Method

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).

Property

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"

Collection

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.

Event

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

┬ęsideway

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

IMAGE

Home (1)

Business

Management

HBR (3)

Information

Recreation

Hobbies (7)

Culture

Chinese (1097)

English (330)

Reference (60)

Computer

Hardware (147)new

Software

Application (184)

Digitization (22)

Numeric (19)

Programming

Web (507)

HTML

Knowledge Base

Common Color (1)

Html Entity (Unicode) (1)

Html 401 Special (1)

OS (305)new

MS Windows

Windows10 (1)

DeskTop (5)

Knowledge

Mathematics

Formulas (7)

Number Theory (51)

Algebra (14)

Trigonometry (18)

Geometry (18)

Calculus (66)

Engineering

Tables (8)

Mechanical

Control

Process Control (1)

Mechanics (1)

Rigid Bodies

Statics & Dynamics (128)

Fluid (5)

Fluid Kinematics (5)

Acoustics (19)

FiniteElement (2)

Biology (1)

Geography (1)


facebook
Latest Updated Links

Copyright © 2000-2018 Sideway . All rights reserved Disclaimersfacebook last modified on 08 Mar 2018