The beginning of object-oriented ASP Programming

Source: Internet
Author: User
Tags vbscript class

I have been using Delphi for nearly four years. Although I do not like Delphi very much, I am using it. I also often use ASP to write some programs. I found that the object model in Delphi is still relatively good, although the development mode of Delphi is faulty. therefore, we also want to use the VBScript class to write something that is frequently used in ASP to speed up ASP development. Because these script languages are relatively simple, so there are only some necessary comments in the program.

In ASP, you can use two types of scripts: VBScript and Javascript. Generally, you are using VBScript, but in other aspects, JavaScript is better, for example, VBScript is not as good as JavaScript in error processing, so there may be some discrepancies among these objects. In order to use the opposite object in both VBScript and JavaScript, each script object must have
For example, if an object csdn exists in Javascript, a function such as csdn is required in javascrui:

Function createcsdn ()
{
VaR objcsdn
Objcsdn = new csdn ()
Return objcsdn
}

If there is an object csdn In VBScript, there is a function in VBScript:

Function createcsdn ()
Dim objcsdn
Objcsdn = new csdn
Set createcsdn = objcsdn
End Function

To use these functions and objects in different script files, you must use <@ Language = vbscrui/JavaScript>

Format

You can use these packages to input the files you are using. You can directly call the interface function to create an object. If you use the same programming language as the code for writing an object, you can also directly create an object.

These objects have not been tested for efficiency. You can also use them in any development project. However, I do not guarantee they are completely correct or take any responsibility for this code, the purpose of the author is to use it for communication and learning, and all netizens are welcome to make corrections or continue to develop more available objects for this purpose.

Because of the current technological development status, writing these programs may not have any influence, but it can also comfort us. I am also a System Architect of "XXXX!

 

              

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.