With
The With statement will allow you to work with an object
without having to specify the variable name each and every time
you access a property or method of the object.
Enclose all of your object methods with a With .. End With
block. Everywhere you would normally write varObject.MethodName,
you can shorten this to .MethodName.
Dim oHash
oHash = Server.CreateObject("Scripting.Dictionary") With oHash .Add "Joe", 33 .Add "Mark", 45 .Add "Bill", 10 End With
You are not allowed to nest With blocks within one another. If
you try to do so, the script will throw a runtime error.
|
 |

|