[fpc-pascal] Sets & FPC
cobines
cobines at gmail.com
Sat Feb 20 11:07:26 CET 2010
If state is of type TOwnerDrawStateType then it can have only one value:
var
state: TOwnerDrawStateType;
...
if odSelected = state then
begin
// My Code....
end;
If state is a set type of TOwnerDrawStateType then it can have more values:
var
state: set of TOwnerDrawStateType;
...
if odSelected in state then
begin
// My Code....
end;
Maybe you meant to declare 'state' as a set.
--
cobines
More information about the fpc-pascal
mailing list