>>>In your original suggestion should it be
>>>Thisform.AddProperty("oProp", NULL)
>>>
>>>instead of
>>>Thisform.AddProperty("oProp", "Empty")
>>>
>>>or it doesn't really matter?
>>Depending on the coding style
>>Thisform.AddProperty("oProp", createobject("Empty"))
>>might be more fitting
>
>I was thinking that this is really an overkill. I believe that the property should be initialized with NULL.
I have worked in a few locations where they tried to work without NULL as far as possible-
either intialising objects or having tests before every access (one had even an access method guaranteeing the object to be there).
For me no problem, I can slant my code to such coding practices easily, and after a few weeks you see benefits in each approach.
That is what I meant with "coding style"
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only