Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AutoSaving of the PRG's
Message
De
17/11/2006 10:58:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
01169994
Message ID:
01170718
Vues:
13
>>>Hi Gang.
>>>
>>>Was there a setting in VFP or FP that allowed auto saving of PRG's as you work on them?
>>>
>>>A friend of mine has had a rash of power outages on his PC (No UPS) and today lost some important work as the PC died a quick death. Autosaving could have saved the work... sigh.
>>>
>>>Tommy
>>
>>Here someting that is quick and dirty. Save this code to HOME()+"Save.prg".
>>
>>
>>PUBLIC oSave
>>oSave = CREATEOBJECT("tmrSave")
>>
>>DEFINE CLASS tmrSave as Timer
>>	interval = (15*1000)
>>	
>>	PROCEDURE Timer
>>		KEYBOARD "{Ctrl+S}"
>>	ENDPROC
>>	
>>ENDDEFINE
>>
>>
>>But before running it, you will need to turn off the "Compile before saving" option on the IDE tab of the Options dialog. Don't forget to click the "Save as Default" button.
>
>Thanks! I will tell him of this and use it myself!

Remember this is a hack. It should not be trust to work the way is expected all the time. Sometimes you may not want to save something until it is completed.

But hope it helps.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform