<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16490">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>I've got a piece of code which uses
TOwnerDrawStateType and TBaseOwnerDrawState which is set
of </FONT><FONT size=2 face=Arial>TOwnerDrawStateType , if i have on
variable called state which is TOwnerDrawStateType how do i do something like
this</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>if odSelected in state then</FONT></DIV>
<DIV><FONT size=2 face=Arial>begin</FONT></DIV>
<DIV><FONT size=2 face=Arial> // My Code....</FONT></DIV>
<DIV><FONT size=2 face=Arial>end;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>i get this error - Error: Incompatible types: got
"TOwnerDrawStateType" expected "<enumeration type>"</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>how do i get around this ?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Justin Smyth</DIV></FONT>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>