Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form array property vs many properties?
Message
From
04/02/2008 10:38:35
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01288030
Message ID:
01289072
Views:
18
>>>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
Map
View

Click here to load this message in the networking platform