Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#DEFINE preprocessor directives
Message
De
10/03/2007 05:44:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/03/2007 01:55:42
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01202495
Message ID:
01202502
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
>Dear Nick
>so i can do this only with PUBLIC variable?

In addition to Nicholas' reply, you can work as follows:

  • Have a main #include file, that references other #include files. In the following examples, I will name it after your company, but you might also use your name, name it "main.h", etc.
    * File homa.h
    #include messages.h
    #include foxpro.h
    #include xl97const.h
    #include ...
    In every PRG where you need one or more constants:
    #include homa.h
    This allows you to separate your definitions into several pieces, and easily include third-party constant files, like a file with Excel constants (from the UT download page; I didn't check the filename).

    For a form, make the constant file available to all methods in the form with the command "Form | Include file". Similar for a class.
    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