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

Rik van Kekem rik at graficalc.nl
Wed Nov 5 19:58:33 CET 2014


On 05-11-2014 19:31, Frederic Da Vitoria wrote:
>
>     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.
You are absolutely correct. But it does point in the right direction 
(unlike Werner expected) ;) However expanding the error-message to 
include the text that it only applies to sets with base types with more 
than 32 values would make it not fit on screen. But the help-page for 
the message could be expanded to include this text. (I got it from 
http://www.freepascal.org/docs-html/user/userse62.html)

So it should be something like this (with my limited English):
*Error: Property can’t have a default value*
     Set properties or indexed properties cannot have a default value if 
the upper and lower bounds of the set's base type have ordinal values 
between 0 and 31.

This message also comes when you right-click the error and choose help. 
So it could be clarified there too.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141105/f7429d52/attachment-0003.html>


More information about the Lazarus mailing list