Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loneliness is ... NOT being #INCLUDE
Message
From
29/05/1997 15:19:23
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00034104
Message ID:
00034144
Views:
36
>>>>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...
Previous
Reply
Map
View

Click here to load this message in the networking platform