ASP Best Practices

Previous Topic Next Topic

Spaces in Scripts

To enhance script readability, use spaces before and after operators, such as plus (+), minus (-), and equal (=).

Example:

intYearsService = intYearCurrent – intYearFirst

Also use spaces after commas, as when passing parameters or declaring more than one variable.

Example:

Dim intYearsService, intYearCurrent, intYearFirst

Note   The use of spaces between arguments in ADO connection strings is invalid and will result in an error.


© 1997-1999 Microsoft Corporation. All rights reserved.