Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't call a prg from inside an exe
Message
From
08/09/1999 14:04:21
 
 
To
07/09/1999 13:18:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00262029
Message ID:
00262500
Views:
20
>To benifit the user with the ability to do customized procedures on his data, I need to set up an add-on manager that will allow the user to register an external prg file and then run it from within the VFP. The problem is that VFP3's do command will not search anywhere except inside the exe. Is there a way to do this, or will all procedures have to be compiled into the exe?
>

It will search along the path established with SET PATH, but it must be compiled to a .FXP - there's no native compilation in VFP3's executable code. You can always give a full path name in the invocation of the command, just leave out the file extension and make sure its compiled ahead of time.

The alternative to this is to incorporate something like CodeBLock into your existing app to interpret the code line by line at runtime, but its slow and has some limits on what cna be done.
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
Next
Reply
Map
View

Click here to load this message in the networking platform