One of the object-oriented ASP programming

zhaozj2021-02-16  95

I used Delphi for nearly four years, although I don't like Delphi, but I am using ASP. I also use ASP to write some programs, I found that the object model in Delphi is still better, although Delphi's development mode is like this or The same problem. So you want to use the classes in VBScript to write some things that are often used in the ASP to improve the development speed of ASP, because these scripting languages ​​are relatively simple, so there are only some necessary comments in the program.

In ASP, you can use two scripts Vbscript and JavaScript. Generally speaking, everyone is using VBScript, but do other aspects of JavaScript is still more preferably excellent, such as VBScript is not as good as JavaScript in error handling, so maybe in these objects There is a number of points, in order to use the other object in VBScript and JavaScript, each script object must have an interface function such as an object CSDN in JavaScript, then there is such a function in javascript:

Function createcsdn () {var objcsdn objcsdn = new csdn () returnobjcsdn}

If there is an object CSDN in VBScript, there is a function in VBScript:

Function createcsdn () DIM objcsdn objcsdn = new csdn set createcsdn = objcsdnend function

In order to use these functions and objects in different script files, then the files are required to enable these functions and objects of the objects that cannot be used <@ @ @ @ @ @ @ = vbscript / javascript> must use