Well, objects are nothing but Variables with Methods (commands) and Properties (values
or sub-variables) making up branches of them, sometimes including other objects.
To make an object that is not loaded by default by ASP, you just need to know
its name
and the library's name from which it comes. A very well-used object that is not part
of the ASP core is an ADO object called Connection. It is in the library, ADODB.
So, to create it, use the object Server and call its command, CreateObject. But, you may ask yourself,
how? Well, the object and it's command or property is connected by a simple period a
"." So to call the CreateObject command you just use "Server.CreateObject()"
while giving the object and it's library just separate it by a period. So, to create the ADO object Connection just use this line:
Server.CreateObject("ADODB.Connection")
But this is not enough, you need to put this newly created object into a variable,
which will allow you actually to create more than one of that object but with different property
values for each. To put an object into a variable, use the Set command and an =.
Like this:
Set Conn
= Server.CreateObject("ADODB.Connection")
This just said, that Conn is a Connection object.
To use ASP's built-in objects (Server, Response, Request, Session, ScriptContext, and
Application) all you need to do is use their names as the variables and call their
commands from those variables.
By: Matthew Holder