Save file

lgarcia3
10-08-2001, 01:12 PM
Hi,
I am developing and application where I have to develop "Save File" and "Open File" modules. Now how do I register a change has occured in the application and has not been saved? Let me know.
Thanks

ChiefRedBull
10-08-2001, 01:22 PM
Try having a global variable. Call it something like <font color=red>bChanged</font color=red> and set it to true every time anything is done that requires a save.

In the save module you can change bChagned back to false - to indicate its been saved correctly.

Then in the Form_Unload() check bChanged to see if its true or false and react accordingly ie - prompt the user if its true, close if its false.

Chief

"How are we to learn, if those that know will not teach... ?" - Me.

anhmytran
10-08-2001, 03:10 PM
It has not been clear what is
"Register" and
"change has occured in the application" and
"save."
It is help full to give your definitions on those.

AnhMy_Tran

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum