>hi,
>
>i created a form for personal use in VFP 7 using the form wizard. the form seems to work fine but i do need to edit it. currently i have to click on edit, make the changes and then click on the save button. i would like to have it so that i never need to click on edit/save and all changes are saved automatically. i took a quick look at the vcx code and how to make this change is not readily apparent to me.
>
>thanks,
>
>nancy
I have not used the form wizard seriously, but I want to contribute with some ideas.
1) The reason you have to click on "Save" is probably because buffering is enabled. I suggest you start reading about buffering, if you haven't already done so. My article (
http://www.levelextreme.com/Magazine/July2002/Page6.asp) can give you a quick start. Buffering is a powerful feature, and you should not disable it.
2) The wizard-created forms are based on a relatively primitive framework. I suggest you investigate a more powerful one. Several options are available, for instance, Mere Mortals, Visual Extend, CodeBook, and many more.
3) Let's say you want to save automatically. In the click event of the "Next" button (and several other buttons), you should insert code to check whether there are changes. If yes, ask the user whether he wants to save the changes (I suggest you don't omit this step), and call the method that saves the changes. To find out which method this is, examine the click event of the "Save" button.
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)