DIM Var AS Integer
This native datatype represents an Integer value, i.e. a four bytes signed integer value.
The value of an Integer is an integer between -2147483648 and +2147483647. (-2^31 and 2^31-1)
Integer values can be written in decimal, hexadecimal or binary
Hexadecimal values are preceded by & or by &H or &h
Binary values are preceded by &X or &x
![]() |
hexadecimal constants with a value which would fit in 4 digits are sign expanded from bit 15 to bits 16 to 31,
if no trailing & is added to the constant. Consider this when defining colors as constants : &H0000FF00 will be yellow
(same as &H00FFFF00, because it will be sign expanded to &HFFFFFF00)
where &H0000FF00& will be green.
|