Sideway BICK BlogSideway BICK BLOG from Sideway

A Sideway to Sideway Home

Link:http://output.to/sideway/default.asp?qno=180500007

Script, Scripting Language, VBScript elements, Server-Side VBScript Object Element Event

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 12/8/2017

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 12/8/2017

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 12/8/2017

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 12/8/2017

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 BICK Blog

07/05


Copyright © 2000-2020 Sideway . All rights reserved Disclaimerslast modified on 26 January 2013