2014-11-05 18:35 GMT+01:00 Rik van Kekem <[email protected]>: > 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
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
