Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loneliness is ... NOT being #INCLUDE
Message
 
To
29/05/1997 14:23:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00034104
Message ID:
00034136
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

check arnon's response -- included files are supposed to hold constants (#define test 5). makes programs easier to read and maintain.
Previous
Reply
Map
View

Click here to load this message in the networking platform