Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Date String A Valid Date?
Message
De
06/07/2001 21:34:26
 
 
À
06/07/2001 03:26:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00526801
Message ID:
00527696
Vues:
27
>Fred:
>
>>? EMPTY({^2001/06/31})
>
>The above on my system generates an error "Date/Datetime evaluated to an invalid date". I don't know whether this happens on your system? However, if this is the behaviour you expected, Jill's solution provides a boolean return value for valid date/invalid date without the need for error trapping.
>
>Thanks.


Works fine on my system: VFP6/SP5 with SET STRICTDATE TO 0. With STRICTDATE set to 1 or 2, it fails.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform