Long from Extern

Monkey Forums/Monkey Programming/Long from Extern

bruZard(Posted 2011) [#1]
i've following code:
#define IDCMP_CLOSEWINDOW	0x00000200L

i want this in my module:
Extern
Const CLOSEWINDOW:Int = "IDCMP_CLOSEWINDOW"

why is CLOSEWINDOW = 0 ?


Gerry Quinn(Posted 2011) [#2]
You're setting an int to a string!


slenkar(Posted 2011) [#3]
change this:
Const CLOSEWINDOW:Int = "IDCMP_CLOSEWINDOW"
to this:
Const CLOSEWINDOW:String = "IDCMP_CLOSEWINDOW"


bruZard(Posted 2011) [#4]
thanks guys, the problem was: Monkey does not import defines. ;)