Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global preference variables - How do you handle it?
Message
 
À
20/05/1998 14:04:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00100618
Message ID:
00100755
Vues:
30
>I would like to here from some other VFP developers on how they handle global preference variables in medium to large size apps.
>
>items of interest:
>
>Do you use public vars, private declared in main prg or some type of object?
>Do you use ini's, registry or dbf?
>How you handle saving and restoring of these settings?
>
>Any and all comments are welcome. Thanks.

We use a combination of ini files, dbf and some registry. The application is delivered with ini files that are preset defaults. The application will read the ini files and set the initial defaults, the app has a library routine that will take the ini files and place all the values into a dbf. This is done for speed. If the user changes any settings for options during their session, before they exit the dbf gets flushed back to the ini files.

We have just started using the registry for keeping track of where the app is installed to and certain other machine specific preferences. But we are not all that confident in a user's registry getting corrupted so we back up with ini files. As others may point out to you ini files can be edited so system troubleshooting is a little easier.

HTH
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform