ASP Variable Testing Functions

ASP Variable Testing Functions
It's important to test that your data is valid before you work with it. These variable testing functions do the trick!

IsArray Function
IsArray lets you know if you can do array functions on the variable.

IsDate Function
IsDate can be CRITICAL before you try to store a variable in a database - otherwise the database will choke on the row.

IsEmpty Function
IsEmpty lets you know if the variable has been initialized.

IsNull Function
Be sure to check for null values before you try to work with your variable.

IsNumeric Function
You'll want to be sure your variable has a numeric value before trying to add or subtract.

IsObject Function
IsObject will help you if you're doing work with OLE or ActiveX objects.

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.

Related Articles
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map

Content copyright © 2023 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.