Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding method code at tun time?
Message
From
11/12/2003 07:19:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/12/2003 21:02:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00857529
Message ID:
00858031
Views:
21
>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.

OK. How about simply using the COMPILE command on the PRG? A button on a form could have some simple commands; the following is a very simplified version, to which you could add a few things:
if file("Report1.prg")
  compile Report1
  do Report1
else
  MessageBox("Report file Report1 is missing.")
endif
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
Next
Reply
Map
View

Click here to load this message in the networking platform