[Lazarus] Sets not implemented??
Maxim Ganetsky
ganmax at narod.ru
Sat Jul 26 01:16:12 CEST 2008
Dominique Louis пишет:
> Hi, I just tried to do the following...
>
> uses
> Graphics;
>
> var
> fs : TFontStyles;
> begin
> fs := fs or fsBold;
> fs := fs or fsItalic;
> end;
>
> at compilation time I get the error...
> "Operation not implemented for sets"
>
> Will "or" or "+" ever be implemented for sets?
> Is there another way to easily work with sets?
Yes:
fs := fs + [fsBold];
Sometimes it is very useful to read reference manual ;)
More information about the Lazarus
mailing list