[Lazarus] Having more than 32 elements in a set (TGridOptions of TCustomGrid)

Frederic Da Vitoria davitofrg at gmail.com
Wed Nov 5 19:31:32 CET 2014


2014-11-05 18:35 GMT+01:00 Rik van Kekem <rik at graficalc.nl>:

> So it's not that the set can't hold more than 32 items...
> It's just you can't use *default* for a property if the set's base has
> more than 32 values.
>
> This is from the Delphi manual (but I'm sure it also applies to FPC):
> <quote>
> The default and nodefault directives are supported only for ordinal types
> and for set types, *provided the upper and lower bounds of the set's base
> type have ordinal values between 0 and 31;*
> </quote>
> Source: http://docwiki.embarcadero.com/RADStudio/XE6/en/Properties
>
> So the error message is not misleading at all ;)
> <quote>
> Error: Property can’t have a default value
>   Set properties or indexed properties cannot have a default value.
> </quote>
>

This may be me misunderstanding English, but I feel that it is misleading:
To me, "Set properties cannot have a default value" means that even a set
with 2 elements could not have a default value.

-- 
Frederic Da Vitoria
(davitof)

Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141105/1a62e965/attachment-0003.html>


More information about the Lazarus mailing list