Developing Web Applications

Previous Topic Next Topic

Mixing Data Types

Because all ASP scripting variables are variants (meaning they can hold values of any type), you can easily assign inappropriate values to variables. For example, you could assign an object to a variable you intend to use for strings.

To help you remember what type of data a variable is supposed to contain, use a naming convention that will help you remember variable types. For a table of recommended variable names for VBScript, see “ASP Best Practices” in this book.


© 1997-1999 Microsoft Corporation. All rights reserved.