Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling date fields from Visual FoxPro
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01129644
Message ID:
01135199
Views:
13
Linda,

>I still can't get blank dates to save back to FoxPro. I tried setting the text box value to DBNull.Value in the after text changed method but get an error that it is an invalid string value. I tried setting the text box value to DBNull.Value.ToString() in the after text changed method of the field. I still get the same error "String is not recognized as a valid datetime". I also tried tried each of those options in the click method of my save button right before the call to the business object's saverow method.
>
>It looks like the Mere Mortals validation requires a non-blank value for all datetime fields. I'm at a loss as to what to do other than making my FoxPro fields string fields, which I don't want to do because I want do do calculations with the dates and don't want to have to do a conversion each time.

Again, I'll work directly with you on this one and we'll post the resolution here later on.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform