Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Cast in mmButtonNew_Click()
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00871595
Message ID:
00871849
Views:
14
Scott,

Good to hear from you!

>Since upgrading to v1.1, I'm getting an "Invalid Cast" error on the following line in mmButtonNew_Click():
>
> mmDataSet ds = (mmDataSet)this.BizObj.GetCurrentDataSet();
>
>The issue seems to be that the type of the DataSet in _currentDataSet is a Typed DataSet...so yeah, that would be an illegal cast. This line of code is new in this version of the FrameWork. Anyone else running into this? Am I doing something stupid?

You're exactly right...this is a new line of code in version 1.1...you can fix this by deriving your typed DataSet from mmDataSet rather than DataSet. This gives you the added DataView "mojo" we've added to the DataSet, as well as any other future enhancements.

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
Next
Reply
Map
View

Click here to load this message in the networking platform