Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with #INCLUDE
Message
De
11/02/1999 15:54:13
 
 
À
11/02/1999 07:56:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00185872
Message ID:
00186748
Vues:
16
>>>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
>>
>>No, #INCLUDE is not public. You need to add the include file to each form,
>>class, etc. In VFP 6.0, there is a public _INCLUDE system variable that you
>>can set as _INCLUDE = "MyHeaders.h".
>
>Thanks for advice. It work o.k. I use VFP5. I must create parent form
>class with including file. Then I must create all form and form class
>from this parent class.
>
>Maros

Yes...and if you refer to the constants, you also need to add the include file to the form too. Select Include File from the Form menu.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform