Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP: PRG from EXE?
Message
From
11/07/1998 22:33:32
Chris Crachiolo
Blackmoor Associates Incorporated
New York City, New York, United States
 
 
To
09/07/1998 11:10:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00115733
Message ID:
00116562
Views:
23
As others have pointed out, this won't work with the VFP runtime, as the compiled program is needed for execution, and VFP runtime won't compile. What might work (I'm still pretty new at all this and maybe there's some limitation that I'm not aware of) would be to assign each generated line of code to a memory variable (or element of an array memory variable) and use macro substitution to execute each line of code. (I've done this to execute variable SQL statements that are constructed on the fly based upon users' entries into a form.) I would be interested in hearing from (more experienced) others whether this would be a viable approach in your case.

>Is it possible to run a .PRG file from within a VFP executable? I have an EXE that creates a .PRG and attempts to run it, but it keeps coming up with a 'File does not exist' error. The .PRG file does exist in the current directory. This all works fine from the IDE.
"Ignorance more frequently begets confidence than does knowledge."
-- Charles Darwin
"I am invincible! Invincible...OWWWWWWWW!"
-- Homer Simpson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform