[thelist] ASP: DIM var AS ??

Joshua Olson joshua at waetech.com
Wed Jul 2 16:48:01 CDT 2003

----- Original Message ----- 
From: "Casey Crookston" <casey at thecrookstons.com>
Sent: Wednesday, July 02, 2003 4:39 PM

> Hello Listers,
> Question: what is the syntax to define a variable as an integer?

Here's a simple trick (probably not the best approach, but it works):

cat_id = CInt("0" & cat_id)
cat = CInt("0" & cat)

That will force both cat_id and cat to be integers.  If the values cannot be
converted to integers it will throw an error.


Joshua Olson
Web Application Engineer
WAE Tech Inc.

More information about the thelist mailing list