>Object, that is. :)
>
>At VFP class, the instructor told us that it's a good idea to make the whole application into an object. He did it using the application wizard. I tried that, but kept running into problems. I'd rather do it myself, anyway. I don't like wizards because I like to know what all the code in my app means. The best way for me to figure something out is to do it myself.
>
>So, could someone give me some pointers about how I go about making an application object and what to do with it when I got one?
>
>Do I still do a "read events"? Where do I put it if I do?
>
>Basically, I need the steps to turn a collection of forms into a runnable application.
>
>Easy question, right?
>
>Thanks,
Michelle,
An "Application Object" is simply an object that is global and provides services and information to the entire application. For example, in The Visual FoxPro Codebook, the application object has a forms collection, a FoxTools wrapper class and functionality to read/write from the registry (among other things). Typically, an application object will also have the code to startup the application and shut it down. So, in effect, an application's start program would look something like this:
SET TALK OFF
SET CLASSLIB TO MyClassLib
PUBLIC goAPP
goAPP=CreateObject("APPLICATIONOBJECT")
goAPP.Start()
Please take this as illustrative, not definitive. Just to give the idea.
HTH