[fpc-pascal] Sets & FPC

martin_wynne martin at templot.com
Mon May 28 19:06:31 CEST 2018


Justin Smyth wrote
> how do I do something like this
> 
> if odSelected in state then
> begin
>   // My Code....
> end;
> 
> I get this error - Error: Incompatible types: got "TOwnerDrawStateType"
> expected "
> <enumeration type>
> "

Hi Justin,

I'm sure you have fixed this by now, but for anyone else, the answer is to
add *LCLtype* to your *uses* list.

Martin.



--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/



More information about the fpc-pascal mailing list