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.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus