It's important to test that your data is valid before you work with it. These variable testing functions do the trick!
IsArray lets you know if you can do array functions on the variable.
IsDate can be CRITICAL before you try to store a variable in a database - otherwise the database will choke on the row.
IsEmpty lets you know if the variable has been initialized.
Be sure to check for null values before you try to work with your variable.
You'll want to be sure your variable has a numeric value before trying to add or subtract.
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.