Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Aug 27, 2001

Use 'With..End With' in Your ASP Scripts


You can use the 'With ... End With' statements if you are using VBScript 5.0 or later. It helps to improve performance.

This runs slower:
 
PersonObj.FirstName = "Sandeep"
PersonObj.LastName = "Gain"
PersonObj.City = "Rajnandgaon"

This runs faster:
 
With PersonObj
	.FirstName = "Sandeep"
	.LastName = "Gain"
	.City = "Rajnandgaon"
End with
Sandeep Gain
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap