Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any side effects in allowing NULL?
Message
From
01/04/2012 13:35:04
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
01/04/2012 13:08:25
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01539772
Message ID:
01539967
Views:
46
>>>>>In order to eliminate this issue I am thinking of always specifying/allowing NULL for every column of the empty cursor. Just in case. Will it slow down the processing of this cursor? The cursor usually is not very big, maybe up to 2000 records. What do you think?
>>>
>>>Other than allowing for sloppy programming, there is no conceivable benefit in allowing NULL and there are huge negatives.
>>
>>In some cases null is a must. Consider a lab result, where null means "was not done", and zero means "done, none found".
>>
>
>1. If the lab result is zero ?

Yes, as in "test done, we found not even a trace of what we were looking for".

>2. You mix the process with the result here.
>Correct data require two fields: result and test counter.

Or an individual record for each test, then each counts as one.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform