Sideway
output.to from Sideway





Draft for Information Only

VBScript Object Events

Some typical predefined Elements are.

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

Initialize Event

last updated 2017/12/8

An Event trigger caused by the initialization of an instance of Class Object. When the Event is fired, the Event will be triggered and the Event handler uses the Object_Eventname naming convention rule to call any subroutine with the correct naming convention.

Remarks

  • Occurs when an instance of the associated Class is created.

Requirement

5

Terminate Event

last updated 2017/12/8

An Event trigger caused by the termination of an instance of Class Object. When the Event is fired, the Event will be triggered and the Event handler uses the Object_Eventname naming convention rule to call any subroutine with the correct naming convention.

Remarks

  • Occurs when an instance of the associated Class is terminated.

Requirement

5

Class_Initialize Subroutine

last updated 2017/12/8

The subroutine is called when an Initialize Event is fired due to an instance of the associated class is initialized.

Syntax

Private Sub Class_Initialize()
   statements
End Sub

Argument

Private Sub Class_Initialize() Required. To specify the beginning of the response subroutine for the Initialize Event.statementsOptional. consists of zero or more code statements to be run when the class is initialized.End SubRequire. to sepecify the end of the subroutine.

Requirement

5

Class_Terminate Subroutine

last updated 2017/12/8

The subroutine is called when a Terminate Event is fired due to an instance of the associated class is terminated.

Syntax

Private Sub Class_Terminate()
   statements
End Sub

Argument

Private Sub Class_Terminate()Required. to specify the beginning of the response subroutine for the Terminate Event.statementsOptional. consists of zero or more code statements to be run when the class is terminated.End SubRequire. to sepecify the end of the subroutine.

Requirement

5

┬ęsideway

ID: 180500007 Last Updated: 2018/5/7 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