Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global App Object
Message
From
22/12/2015 09:13:12
 
 
To
21/12/2015 15:07:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01629191
Message ID:
01629215
Views:
98
>I'm wanting to get some ideas of properties, methods, features, etc. that would go into making a generic, reusable Application Object. One that would be a good basic App Object that could be used universally in creating common business apps in FoxPro. Ideally, this global App object would have basic properties, and methods that we'd all likely find useful if we were using it in one of our apps.
>
>I assume almost everyone has such an object in their apps, or at least a bunch of hodge-podge functions that simulate such a thing.
>
>So, please share you comments and ideas with me...
>
>For instance, here is what I've started out with as I began to abstract my specific goApp class to a generic one:
>
>
>Define Class AppObjectBase As Custom
>
>	lExe = .f.
>	lDevMode = .f.
>	cAppName = ""
>	cCurrentModule = ""
>	cActiveForm = ""
>	cCurrentVersion = ""
>	cTempFilesPath = "C:\Temp\"
>	
>EndDefine
>
>
While building and debugging one of these, I found that having a goApp table with field names of some properties (obviously, it won't work for code) was sometimes useful.

Chris.
Previous
Reply
Map
View

Click here to load this message in the networking platform