Versions des environnements
>>>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"
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement