Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 19 AUG 1998 03:52:57AM Nick Stevenson wrote:

We have a form bound to a dataset. On one of the edit line controls we insert some event sript on the Lostfocus event. If we use RETURN 0 to terminate the event, the data changed in the control is not saved away. When we use RETURN 1, all is well. We have no other events on the control. What is the secret behind this?


At 19 AUG 1998 04:43AM Andrew P McAuley wrote:

The secret is that returning 0 says "I've done all the processing - don't you worry your pretty head none", whereas return 1 says "I've done my processing - now you do your stuff" - and OI's stuff includes remembering to update it's image of the data.

It's all to do with event chaining.

amcauley@sprezzatura.com

Sprezzatura Ltd

World Leaders in all things RevSoft

When do you want to reboot today?[/b] </QUOTE> —- === At 19 AUG 1998 07:22AM Mike Ruane wrote: === <QUOTE>I cain't but help worry my pretty l'il head 'bout when I'm gonna reboot today…. </QUOTE> —- === At 19 AUG 1998 03:36PM Andrew P McAuley wrote: === <QUOTE>standard disclaimer - the reboot is nowt to do with RevSoft … forgot to take that out…. amcauley@sprezzatura.com Sprezzatura Ltd World Leaders in all things RevSoft </QUOTE> —- === At 20 AUG 1998 12:56PM Sedick Cloete wrote: === <QUOTE>Yes, we know what RETURN 1 means, but why only on a dataset bound form and not a LH bound form. </QUOTE> —- === At 21 AUG 1998 07:23AM Cameron Revelation wrote: === <QUOTE>Sedick, On a DataSet-bound form, the system LOSTFOCUS (and POSCHANGED etc.) processing copies the data from the control into the DataSet, so if you do not RETURN 1 (or completely replace the system logic) then the DataSet will not reflect the current state of the form. I suggest using the CS_SPY window to see these changes as they occur. On LH-bound forms, the system LOSTFOCUS (and POSCHANGED etc.) processing is responsible for setting SAVEWARN, for doing validation, conversion, required field processing, etc. So if you put a RETURN 0 on each of these events, SAVEWARN won't get set and the user won't be told to save the data. However, the manner which the data is collected to save is directly out of the controls at save time. Cameron Purdy Revelation Software </QUOTE> View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/9def896b497df31085256665002b4cdc.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1