Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global App Object
Message
De
22/12/2015 09:13:12
 
 
À
21/12/2015 15:07:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01629191
Message ID:
01629215
Vues:
97
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform