>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)