Information générale
Catégorie:
Codage, syntaxe et commandes
I know, that #INCLUDE don't create true memory variable. But I don't
know, that I must specify include file in every form.
Thanks for your advice. It is solution of my problem.
maros
>#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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement