The constantName does not have to include a type suffix. The datatype is automatically infered by the compiler using the value.and if you pick the example 2 from the wiki in the page of CONST http://qb64.org/wiki/CONST (http://qb64.org/wiki/CONST) and you run the code you get error from the line
Constant values cannot reference a variable, SUB or FUNCTION return values when defined.
The exception to the above are color functions _RGB32 and _RGBA32, which can be used in a CONST statement. See Example 2 below.
In sum _RGB -->SCREEN 0to
_RGB32-->SCREEN GRAPHIC 32
In sum _RGB -->SCREEN 0 and SCREEN GRAPHIC 32 if used AFTER SCREEN instruction
_RGB32-->SCREEN GRAPHIC 32
as you show me _RGB gives as result the legacy number of color in SCREEN legacy mode and RGB value in SCREEN 32. So it can adapt its result to the kind of SCREEN and so it MUST be used after SCREEN statement.
Thanks again
colorIndex~& = _RGB(red&, green&, blue&[, imageHandle&])
If the imageHandle& is omitted the image is assumed to be the current destination or SCREEN pageat wikipage http://qb64.org/wiki/RGB (http://qb64.org/wiki/RGB)