Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How EXTERNAL FILE work?
Message
From
14/12/2002 13:49:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/12/2002 08:24:46
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00731748
Message ID:
00733068
Views:
17
>I have a APP with a lot of class, in the future it could be a DLL.
>
>Now, I use in Pr1.pjx :
>
>SET CLASSLIB TO x.vcx IN MyLib.APP
>
>When I compile Pr1.pjx it show as error all the class, and classlib I use, and they are in MyLib.APP
>
>Pr1.APP work Ok, the class in MyLib.APP It´s created Ok, but in compile time it show these errors (files and classes don´t found).
>
>I Try to use EXTERNAL command, using:
>
>EXTERNAL FILE ...
>EXTERNAL CLASS ...
>
>But it don´t work.
>
>How I can do for don´t recibe these errors.
>
>Regards,
>José Luis.

The EXTERNAL basically tells the compiler to ignore the "errors" for one particular file. I used it now and then in the past for arrays, which the compiler may confuse with (nonexistent) procedures.

The EXTERNAL command has to be in the same file where you reference the array or file. Perhaps this is your problem? If you reference a program that is not found in the project, in several PRGs, I believe that each PRG needs the EXTERNAL declaration.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform