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

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: