Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detectar fecha invalida
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00648862
Message ID:
00648939
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Ok, el valid se ejecuta, la pregunta ahora es como detectar si una fecha esta mal digitada. Ejemplo: 20/15/2002

Hay varias formas. Por ejemplo tratar de convertir a formato fecha y ver si da error o fecha en blanco.
Si tienes SET STRICDATE To 0|1 lo siguiente es un truco antiguo:
? DTOC(CTOD(MiFecha))
dara en blanco si es invalida.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform