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:
01134606
Views:
14
Kevin,

I thought I had it figured out but I'm still getting the same error. I think at least part of the problem was that when I ran the Business Layer Generator, it called the GetNonNullableDbValue function for each of the fields. I changed that to GetNullableDbValue for all the fields that can be blank, including all the date fields. If I leave a date field blank, I still get the MM error message:
"String was not recognized as a valid DateTime."

I also tried unsuccessfully adding the following code to the click method of my save button right before calling the save method:
        if (mmType.IsEmpty(this.txtBirthDate.Text))
            dsPersonnel.Tables[0].Rows[0]["birthdate"]= DBNull.Value;
What next?

Thanks.

Linda
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform