Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detectar fecha invalida
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648862
Message ID:
00648939
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform