Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

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.

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"You have not converted a man because you have silenced him." - John Morley

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.