Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Dale Dedoroy
  Where is Dale Dedoroy?
 Bacolod City, Negros Occidental
 Dale Dedoroy
 To: Stephen Walker
  Where is Stephen Walker?
 Utah - United States
 Stephen Walker
Subject: RE: Save data on exit from form
Thread ID: 179 Message ID: 181 # Views: 1 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Wednesday, May 16, 2001 12:52:10 AM         

> I am having a problem when using the "EXIT" tab on the wizard generated form. When I first built the application when exiting the program the application would request that you select the option to save changed data. The form no longer presents this closing option. I have several fields that I do a replace command on without selecting "Edit" and "Save". One of the fields is a date field where I issue the following code:
> On click
> replace c_date with date()
> this.refresh
> This places the current date in the c_date filed. Untill a recently when exiting the form the update option would write the change to the database. However, now the date is not saved unless I select edit and save before exiting the form.
> I assume I have reset some variable but have been unable to find it . Can anyone please provide the answer to this perplexing issue.
> Steve

Hi Steve,
On the form's QueryUnLoad Event, try the following:
If MessageBox('Do you want to save pending entries?',32+4,'MyExe') = 6



Save data on exit from form Posted by Stephen Walker @ 5/16/2001 12:09:22 AM
RE: Save data on exit from form Posted by Dale Dedoroy @ 5/16/2001 12:52:10 AM
RE: Save data on exit from form Posted by Thomas Holt @ 5/16/2001 7:21:26 AM