Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class Within a Class...
Message
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
VB.NET 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01078713
Message ID:
01079135
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform