Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#DEFINE and #INCLUDE
Message
De
26/05/1999 11:27:06
 
 
À
26/05/1999 11:12:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00222951
Message ID:
00222969
Vues:
21
>I have a .h file that creates all of the Word8 VBA constants using #DEFINE. I also have many methods in a custom class that attempt to use one or more of these constants. Do I have to #INCLUDE the .h file in every method that uses these constants? Or is there a way to make these constant definitions "public"?

In VFP6, you can have a single .H file included in all modules (Ian Russel gave a method to set it automatically; I prefer to set it programmatically using the _INCLUDE system variable.) Under VFP5 and earlier, you have to explicitly include it in each method that needs it. in VFP6, if there's more than one needed, you either have to put them all together in one big file, or explcitly set them in each moethd.

In a non-visual class, a #INCLUDE at the beginning of a procedure file propagates to everything in that procedure file.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform