Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parametric program developing
Message
De
31/10/2002 10:59:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00717300
Message ID:
00717358
Vues:
14
>Would you like expand this matter with some small samples Hilmar ?

I forgot - another useful place to store information is text files. My download about backups illustrates how to read from a text file.

Well, some examples of options you might save in a text-file or in a table are:

  • The current exchange-rate (for systems that work with two currencies).
  • The name of the company (if you want to allow the user to change that).
  • Texts for menu items (this allows you to translate the system into several languages).
  • The list of provinces in your country, or, in general, geographical regions you work with. If you hard-code this, instead of saving it in a table, it is difficult to expand trade to additional countries, for instance.
  • Where you want to save your automatic backups (see my backup program).
  • Command-line options for your compression program (see my backup program).

    In general, every time you have a ComboBox with a few options, you can hard-code the options. Or, you can consider the alternative to load the options from a table - this allows you do the change without recompiling. Also, eventually you can give the user a form to edit the options. All this isn't possible if the values are hard-coded in the PRG / Form / Class / EXE.

    Regards, Hilmar.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Précédent
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform