Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with #INCLUDE
Message
 
À
10/02/1999 06:01:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00185872
Message ID:
00185887
Vues:
19
#INCLUDE does not create memory variables. It creates constants that are replaced with the actual constant value at compile time. You need to specify the include file in every .prg or form that will use its constants.

To add an include file to a form or class go to the form or class menu and choose Include File.

>I use on begin of my start prg command #INCLUDE 'strings.h'.
>In this file I define some memory variables, that I want use
>in all my app. For example, variable APPTITLE contain
>screen caption of my app. If I use this variable in start
>prg, it work ok. But if I use it in form, VFP show error message
>'Memory variable APPTITLE not found'.
>I think, that variables definying via #INCLUDE are public.
>Or no?
>
>Maros
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform