Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loneliness is ... NOT being #INCLUDE
Message
De
29/05/1997 15:19:23
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00034104
Message ID:
00034144
Vues:
34
>>>>Let's say I have:
>>>>
>>>>* PROGRAM1.PRG
>>>>#INCLUDE c:\temp\special.prg
>>>>? test*2
>>>>RETURN
>>>>
>>>>* c:\temp\special.prg
>>>>test=5
>>>>
>>>>
>>>>
>>>>An error is generated saying "test" is undefined.
>>>>
>>>>I thought #INCLUDE includes the file.
>>>>If the file is included, why is "test" undefined?
>>>>
>>>>Thanks,
>>>>Gene
>>>
>>>#DEFINE test 5
>>
>>Dave,
>>
>>I actually want to have the line say:
>>
>>test=5
>>
>>Want I am trying to do is to include special code (not just test=5).
>>
>>I may actuaaly have in the file to be included:
>>
>>DO WHILE .t.
>> whatever
>>ENDDO
>
>What about create a function or proc and call it?
Gene,

Make test public before the #INCLUDE. If you don't, when the #INCLUDE is referenced, it's got nowhere to put it.
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform