Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code to find all invalid dates
Message
From
28/06/2013 13:27:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01577415
Message ID:
01577416
Views:
77
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform