I know all the arguments for OOP but I'm just not convinced that taking all the functions from my old proc file and making into methods of the goApp object is going to help me much.
I'm not suggesting you do that. Although something like 90% of my generic code is in classes, I also still have a good old Proc file, and I have no intention of objectifying it. Nor do I have a goApp object.
Where I use classes is for thing like access control (any control can ask the class whether the user has permission to access it), saving the state of the desktop, dealing with user preferences, managing connections to back end databases, retrieving information from the Internet, etc. etc.
As far as the login screen is concerned, this is part of my generic user manager class. The class is responsible for identifying and validating the user, and related tasks, one of which is to provide a user interface for the login process.
Like many of the developers here, I work on multiple applications for several clients. There's a huge benefit in being able to take any of the above classes and reuse it across other projects.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business