On Feb 14, 2006, at 2:01 PM, Mars Saxman wrote:


On Feb 14, 2006, at 9:10 AM, Robert Woodhead wrote:


When declaring a property, you are allowed to set the name, type and initial value.

If you declare a property derf as Integer = -1, when the object is created, derf gets set to -1.

The property editor happily lets you make an array declaration with a constant initializer, ie:

derfArray(10) as Integer = -1


I'm not surprised that the property editor lets you type that in, but I am surprised that the compiler has no comment. This should be a compilation error.

Mars Saxman
REAL Software


I think there are more surprises. No error for me on this either in the Add Property pane:

Declaration: myString
As: String
= -1


Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to