IsNumeric Variable Testing Function

IsNumeric Variable Testing Function
You can only do numeric functions on numbers. It makes sense! Ensure that you actually HAVE a number before trying to work with it!

If your user input a variable that you put into BookCount, your syntax would look like this:

BookCountOK = IsNumeric(BookCount)

if BookCountOK = FALSE then
response.write "You didn't enter a number. Please try again."
end if

Variable Testing Functions

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.




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





Content copyright © 2022 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.