Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to establish references to external functions
Message
From
07/02/2002 19:47:08
 
 
To
07/02/2002 15:51:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00616432
Message ID:
00617098
Views:
29
>>Why not create a .H file full of EXTERNAL declarations?
>
>I created a file FournierTransformationFunction.h. In that file, I tried with this syntax:
>
>
>#DEFINE IsCookie
>
>
>That didn't work. So, I tried with this:
>
>
>#DEFINE IsCookie()
>
>
>That didn't work. So, I tried with this:
>
>
>FUNCTION IsCookie
>RETURN .F.
>
>
>How should I enter those functions in the header file in order to them to be recognized at compile time?

Add the line:

EXTERNAL PROCEDURE IsCookie

to tell the compiler to resolve the IsCookie reference at runtime using the current pathing and procedure file searches. You can use EXTERNAL when referencing any number of VFP object types - files, forms, classes, reports and the like.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform