Information générale
Catégorie:
Codage, syntaxe et commandes
>What is the best way to handle preferences in a VFP program. In other systems I have created a single (database/table) file with one record to included a field (type dependent) on each preference in the program. I would then refer to that PrefTable.PrefField when needed.
>
>I've read through a couple of VFP text books and have yet to find any specific reference to handling this.
>
>Are there better ways to deal with this in VFP???
>
>Thanks in advance,
>Craig
Same here - just call a function with the code of the preference and let it find it and work out the type to return (one of the joys of VFP, returning any type from a function).
I extend it with GLOBAL and LOCAL (or USER) preferences.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement