Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code to find all invalid dates
Message
De
28/06/2013 13:27:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01577415
Message ID:
01577416
Vues:
76
>How do write a code that goes through all my database table looking for invalid dates residing in the tables? I need it to list the table name, field name and the invalid date.
>
>thanks community
>
>Nick


Define the rules for an invalid date. If they are in a date field, they are valid iro day/month/year. If they are stored in character fields then you could convert to date inside a TRY ... ENDTRY and see if an error occurs.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform