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:
01171651
Views:
8
Ted,

>Like I said before, regarding setting the current row in RowUpdating():
>
>// this does NOT set the row: this.oSurveyDue.Entity.SetDataRow(CurrentRow);
>
>// The below does:
>this.oSurveyDue.DataRow = CurrentRow;

Right...I guess I wasn't clear in my response, but I was agreeing with you.

>Regarding storing null date my code below works, what you provided does not compile & provides this error:
>
>Error 1 Type of conditional expression cannot be determined because there is no implicit conversion between 'System.DBNull' and 'System.DateTime?' C:\MM.NET\MMS\MMS Business Objects CSharp\SurveyDueEntity.cs 112 62 MMS Business Objects CSharp


Sorry about that...the code I have at the Framework level has a different type conversion that works properly, so for now I recommend using the code you originally showed where you are setting an empty date value.

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