Quote Originally Posted by Traveler
Also I noticed the default keyword, but without a value assigned to it. Why is that? And why use it at all? In the book Mastering Delph 5, the author says default values for published properties help reduce the dfm filesize and ultimately the exe filesize.
When default is used in this context with an array property, it allows you to access that property without explicitly naming it, but just using square brackets after the class name, i.e. instead of:
[pascal]LightSystem.Items[i][/pascal]
you can use:
[pascal]LightSystem[i][/pascal]
Obviously, only one default property may be used per class.