[progress Communities] [progress Openedge Abl] Forum Post: Re: Abl.net Basic Questions

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
Re #3: How would the form's Validate method know what to call? It is not omniscient! It is not the form's job to handle your data. It is your job, as I said. So it sounds like you've already got it under control. And I hadn't looked it up before but now have: The Validate() method on the form simply causes the appropriate validate event to fire for the control that currently has focus: "Verifies the value of the control losing focus by causing the Validating and Validated events to occur, in that order." So that is another way to go - but you still have to subscribe to those events and do any necessary validation yourself. I also think these events fire automatically when a control loses focus so that you can validate input as the user is entering data, and not wait until the end. But sometimes there are cross-field dependencies and you do have to wait until OK is hit to validate these kinds of things. All this is pretty standard UI programming - the same as it is in the ABL. There are just different properties/events in .NET. There is no magic!

Continue reading...
 
Status
Not open for further replies.
Back
Top