Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding method code at tun time?
Message
From
10/12/2003 21:02:52
 
 
To
10/12/2003 09:31:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00857529
Message ID:
00857948
Views:
25
My application has report forms for invoices which are not built into the exe but reside in the data folder so they can be easily modified for different company needs.

I have added an email facility for invoices where I write to a .txt file using @ SAY and then email the text file as an attachment. By having the lowlevel (FWRITE etc) and @ SAY routine as a .prg file, also found in the data directory, it can be easily modified for customer requirements without having to make modifications to the exe.

Regards
Doug Johnston




>It would be interesting to know what you want to use it for. Quite often, you can solve the problems without dynamically creating code, simply by putting the required code into a class.
>
>>Hi,
>>
>>Is there any way to get VFP to read in some method code from a text file at run time?
>>
>>I have tried to get reasonable text output from REPORT FORM cReport TO FILE cFname ASCII, but this produces very unreliable results, so I thought perhaps put all my low level file and @ SAY stuff into a text file and read and execute this at run time.
>>
>>Regards
>>Doug Johnston
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform