[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.

GL,

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168



More information about the thelist mailing list