Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding method code at tun time?
Message
De
11/12/2003 07:19:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/12/2003 21:02:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00857529
Message ID:
00858031
Vues:
22
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform