Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Within a Class...
Message
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01078713
Message ID:
01079135
Vues:
17
>Hi,
>
>I was wrong on this. I may have been thinking Java - if I remember you can do this with a nested class (if it's static) but that isn't much help in this case<g>
>
>Chris's suggestion of passing in the outer class reference in the constructor seems like your best bet. Given that you can't achieve what you intended perhaps the nested class structure is not particularly useful in this instance?
>
>Regards,
>Viv

Thanks for all the input and suggestions. I ended up just passing in the parent reference into the constructor of the child classes I instantiate inside the main class. It ultimately gives me the functionality I wanted.
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services


Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform