>Hi,
>
>there is a lWriteBuffer property in the cBizObjForm. The WriteBuffer() method checks this property. If it's .F. (default) it bails out immediately. In every command button of the standard toolbar there is code that sets this flag to .T. calls the save, new or whatever method and sets the flag back.
>
>I understand that there is no need to do the WriteBuffer stuff when Save is called from a button on the form, for example. But was it the only intention to avoid the execution of the WriteBuffer stuff in these cases?
>
>Has anyone any ideas?
>
>Thanks,
>Armin
I think that was the intention. There isn't much reason to run the code unless you've clicked on a toolbar button. You could (possibly) even introduce bugs if it ran again because the code, in those cases, forces the buffer to be updated a second time after events like Valid have fired.