Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
>>>>I have a form that has an INCLUDE file. I added it through the Form menu. It does not seem to be working as the DEFINE values are not available in the INIT of my form during runtime.
>>>
>>>Have you verified that this is indeed the correct include file with all the variables defined?
>>>
>>>You may try to use COMPILE FORM myForm.scx.
>>
>>Yes, it worked when it was part of a PRG, but now I've split code into the include file and the INIT of a form and the DEFINE variables are not in scope in the INIT.
>
>You can't put code in the include file. It'll never be executed as it will not become part of your method.
Not sure what that means. There are only DEFINE statements in the include file. When they were all part of the same program (no form involved at all) then the DEFINEs were at the top, class instantiation was next, and class definitions were last. It all worked. When I put the DEFINE statements into an include file, moved the calls to the INIT of the form and put the class definitions into a procedure file, it went bad.
Précédent
Suivant
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