Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Polymorphism and virtual methods
Message
De
29/10/2002 13:21:10
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Programmation orienté objet
Divers
Thread ID:
00716411
Message ID:
00716539
Vues:
18
David,

Butt in anytime! What you suggest works, but this opens up another can of worms. I use members and properties to access data fields in my business objects. If I had a way to get values from and save values to fields in the back end, I would not need to go through all this. At one point someone suggested I could use datasets to implement data access instead of the member/property scenario. What do you think?

TIA

Rex

>Forgive me for butting in, but the problem is that you need to cast the reference to the subclass type before you can use the methods and properties of the subclass.
>
>
>	With CType(BizObj,AudienceType)
>		.AudienceType = txtAudienceType.Text
>	End With
>
>
>(I am not sure that the cast will work with the WITH keyword, but the point is that you have to cast the reference to the subclass)
>
>>In the PopulateBizObjsFromPage method of my AudienceTypesForm class I get a message saying that AudienceType is not a member of ParentClass.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform