Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Cast in mmButtonNew_Click()
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00871595
Message ID:
00871849
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform