Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function empty() and null value
Message
De
28/06/2011 12:50:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01516146
Message ID:
01516532
Vues:
47
>>>I think your approach is probably better. Except a little more characters to type when making changes <g>. Thank you.
>>
>>You can always pass the var to a function and check it there - you could set it to an empty date if it's null or check it for a valid date within a range if it's not null, etc....
>>
>
>Good suggestion. I can add more "features" to the function that checks for empty or null date. Thank you

Except that I'd still go for the one-liner expression in a SQL statement. Today's machines may be fast enough for that, but still the overhead of calling a function for each record may be too much - and may get of your nerves if it happens while debugger is on.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform