Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form array property vs many properties?
Message
De
04/02/2008 10:38:35
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01288030
Message ID:
01289072
Vues:
19
>>>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
Fil
Voir

Click here to load this message in the networking platform