devxlogo

Use ‘With..End With’ in Your ASP Scripts

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"

size=3>
This runs faster:

 With PersonObj	.FirstName = "Sandeep"	.LastName = "Gain"	.City = "Rajnandgaon"End with

size=3>

devx-admin

Share the Post: