ASP + VBScript class constructor?

Source: Internet
Author: User
Tags vbscript class
ASP + VBScript class constructor?



[The post has been closed. The end user is yanjinbin01]

 
Posted on:2007-09-04 10:29:30

Landlord

For example, if I write a class

<%

Class user_class

Public Str

Private sub user_class_initialize ()

STR = "Class Object start construction"

Response. Write ("Class Object start construction ")

End sub

Private sub user_class_terminate ()

Response. Write ("Class Object destruction ")

End sub

Public sub getwrite (STR) 'create a class Method

Response. Write (STR)

End sub

End Class

Set Gg = new user_class

Response. Write (GG. Str)

%>

The page does not display anything. The VBScript class does not support these two events.

 
 
 

Posted on:2007-09-04 10:41:46

1

Floor score:10

Private sub class_initialize ()

Private sub class_terminate ()

Your name is incorrect.

 
 

published on: 10:52:28

2

> floor score: 0

...... It turned out to be triggered in this way. I thought that was the one that created the class and the class name. Thank you.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.