Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to dot matrix
Message
De
20/08/2001 07:28:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
19/08/2001 16:10:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00538025
Message ID:
00546095
Vues:
17
>Yep, you'd have to write a record in the FoxUser file. Much to difficult, certainly.

Well, yes, this looks like a simple solution, and it would probably solve the problem.

However, a while ago, I just wasn't sure how to do it. So now I am using another solution (open the file with an external editor).

This turns out to have its own complications. Mainly, in VFP I can't:
run /n notepad.exe MyTempFile.TMP
erase MyTempFile.TMP
The problem here is that Visual FoxPro would probably erase the temp file before NotePad has a chance to open it. My original solution to this was to erase all temp files on program exit (because of networking, I deleted files older than a certain limit).

Currently, I create a timer for each program. The timer erases the corresponding file after five minutes.


The main advantage of my current approach is that, when I changed to HTML files, I could easily give the user additional formats, not available in "text only" - mainly bold and italic.


Hilmar.
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