Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Big 'O'
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00115108
Message ID:
00115402
Views:
16
>I mostly need it to start and stop the application. It will also be a holder for what would otherwise be public variables. I may add more once I get it going, but that's it to start.
>
>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:
>>
>>
>>*-- TestMain.Prg
>>*--
>>*-- A Hypothetical main program
>>
>>SET TALK OFF
>>SET CLASSLIB TO MyClassLib
>>PUBLIC goAPP
>>goAPP=CreateObject("APPLICATIONOBJECT")
>>goAPP.Start()
>>
>>*-- The read events is somewhere in the code run or called by Start (). So, all we have to do is shut down at this point
>>
>>*-- Do whatever you want after the application has everything closed
>>
>>
>>Please take this as illustrative, not definitive. Just to give the idea.
>>
>>HTH

Sounds cool to me. Please let me know if I can be of any help.
Menachem Bazian, CPA
President
BC Consulting Services, Inc.
973-773-7276
Menachem@BazianCentral.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform