How to declare ASP classic constants to a data type?

Posted by Guy on Stack Overflow See other posts from Stack Overflow or by Guy
Published on 2009-05-14T09:27:16Z Indexed on 2010/03/26 13:03 UTC
Read the original article Hit count: 204

Filed under:

In asp classic and vbscript, you can declare a Const with a hexidecial value, and a date type value:

 Const C_LIGHTCYAN = &hCCFFEE
 Const C_STARTDATE = #1 JAN 2000#

But how can I declare currency, single or doubles data types?

 Const C_LONG = 1024 '# I want this to be a LONG, not an INT!

I'm sure I've seen something like Const C_LNG = L12345 or some other prefix/suffix combination for longs or doubles but can't find the source now

© Stack Overflow or respective owner

Related posts about asp-classic