>Hello Sergey Hello Borislav
>Thank you for your answers.
>
>I changed the &H to 0x in the include file with no success.
>The debugger shows colornumbers with lenght 10. (4278190080 for black as example) and the error message is:
>Ole error 0x800 2000a ausserhalb des Bereichts (=outside the area (or array))
>
>Using color numbers with length 8 instead of rgb(x,y,z) works (.color = 16777088 for example)
>
>My special problem is "Transparent" which is defined as "FFFFFFFE" without an leading &H in the include file!!!
>Using .color = Tranparent shows error type conflict.
>Using .color = 4294967294 (=decimal FFFFFFFE) shows error
>Ole error 0x800 2000a ausserhalb des Bereichts (=outside the area (or array))
>
>Any more ideas??
>Best regards
>Albert
The problem is that anything above 0x7fffffff won't fit into a 4 byte integer anymore - says foxpro
The way around is to
change
#define Something 0xFFFFFFFE
into
#define Something bitor(0xFFFFFFFE,0)
Gregory