Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking a date for null value
Message
De
30/07/1998 15:49:31
 
 
À
30/07/1998 12:37:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00122726
Message ID:
00122838
Vues:
14
>>I have a local date variable that I want to check for spaces (user didn't enter a value for the variable) . When I put in the command
>> if thisform.msdt = ctod(' / / ')
>>I get an error message: operator/operand type mismatch. Why?
>
>Three tips:
>
>1. Wouldn´t it be THISFORM.MSDT.VALUE?
>2. Did you initialize it to a date?
>3. It´s easier to compare against {//}.
>
>HTH!

It's even easier to say EMPTY(ThisForm.Msdt.Value)

or even compare to {}
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform