Easy question:
Will my INI File save before the exit is complete?
Something tells me not, my messagebox does not appear....
I'd hate to duplicate code, I could make a function to do the saving...
------------------
Scott
[This message has been edited by Scott Turchin (edited April 30, 2001).]
Will my INI File save before the exit is complete?
Something tells me not, my messagebox does not appear....
I'd hate to duplicate code, I could make a function to do the saving...
Code:
Case %IDM_SAVE 'SAve file here g_IsSaved = %TRUE lResult = MessageBox(CbHndl,g_IniFile & " was saved",ByVal StrPtr(g_szCCS),ByVal %MB_ICONINFORMATION) Case %IDM_EXIT If IsFalse g_IsSaved Then lResult = MessageBox(CbHndl,"Save changes? Y/n",ByVal StrPtr(g_szCCS),ByVal %MB_ICONINFORMATION Or %MB_YESNO) If lResult = %IDYES Then 'Save INI File Control Send CbHndl,%IDM_SAVE, %BM_CLICK,0,0 End If End If Dialog End CbHndl,1
Scott
[This message has been edited by Scott Turchin (edited April 30, 2001).]
Comment