I hope I haven't completely lost it. The following code gives me an Overflow Error:
Public Sub test()
Dim lng As Long
lng = 2147486647#
End Sub
Every time I type 2147486647
it adds the #
which makes it double. If I try and use the ?
to make it a long (2147486647?
) I get a compile error:
Expected: end of statement
Also trying to cast it as a long explicitly gives an overflow error as well. Am I losing it? Is the max value for a long smaller than this?
I am working in Zenon by Copa Data. It is SCADA Software and might have something weird but I also tried this in excel with the same results.