Help Please
Posted: Fri Nov 25, 2005 8:06 pm
I am making a program. When the user exits, i want it to ask if he wants to save. How can I do that?
Thanks Much

Thanks Much


Code: Select all
If OpenWindow(0,0,0,222,200,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"ButtonGadgets") And CreateGadgetList(WindowID(0))
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
If MessageRequester("","Save your project ?",#PB_MessageRequester_YesNo )=6
File$ = SaveFileRequester("Please choose file to save", "", "Text (*.txt)|*.txt", 0)
EndIf