Sorry if this sounds crazy but I've been knocking my head against walls passing dozens of variables back and forth between procedures (like this) and I've finally seen the light.
Custom classes are now letting me do in 2 lines of code what I was struggling so hard to do in hundreds of lines before. They take a little time to set up properly but it's time very well spent.
Here's the article that finally made me understand the value of classes:
Member
42 Points
119 Posts
Word of advice for new folks - use custom classes!
Aug 23, 2007 11:12 AM|wkwork|LINK
Sorry if this sounds crazy but I've been knocking my head against walls passing dozens of variables back and forth between procedures (like this) and I've finally seen the light. Custom classes are now letting me do in 2 lines of code what I was struggling so hard to do in hundreds of lines before. They take a little time to set up properly but it's time very well spent.
Here's the article that finally made me understand the value of classes:
http://www.devarticles.com/c/a/ASP.NET/Class-Frameworks-in-VB-.NET/
If you're making medium to large sized web sites or expect your site to grow some day, memorize it. It did me a world of good. :)