Search code examples
asp-classic

How to declare ASP classic constants to a data type?


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


Solution

  • You can't declare variables with data types in ASP just set the value in decleration, that should work fingers crossed.

    I don't think there is currency type anyway. For double you can 1.00 etc.