[fpc-pascal] Sets & FPC

Justin Smyth delphian at smythconsulting.net
Sat Feb 20 09:55:42 CET 2010


I've got a piece of code which uses TOwnerDrawStateType and TBaseOwnerDrawState which is set of TOwnerDrawStateType , if i have on variable called state which is TOwnerDrawStateType 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>"

how do i get around this ?


Justin Smyth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100220/c4e38da5/attachment.html>


More information about the fpc-pascal mailing list