Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding procedures at run time
Message
From
07/05/2003 10:04:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00785778
Message ID:
00785789
Views:
19
>I was wondering if there is a way to add a bunch of procedures to the application at run-time.
>
>I have a program file MYPROGS.PRG (which has a few functions) which is not included in the project (therefore, not in .EXE). The functions are used in one custom report. Before the report gets loaded there is a line:
>
>
>set procedure to myprogs additive
>
>
>I placed the file MYPROGS.PRG to the executable application folder. But at run time, on the above line, I get error, something like "can't find file myprogs.prg".
>
>Is it possible to add the procedures/functions at run-time or I HAVE TO add the file to the project?
>
>TIA.

If you have a PRG alone, you have to use the COMPILE command to convert it into the FXP equivalent - at runtime, this isn't done automatically.

To use the COMPILE command at runtime, you need VFP6, Service Pack 3, or later. In previous releases, this feature was disabled.
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