[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
I would forget about this Form:Validate() method. I tired in in C# and I don't see that it is working either. I'm sure I'm doing something wrong. But you don't need it. You need to subscribe to the Validating event on each control that you want to validate in this way. As I thought, the Validating event fires automatically when a control loses focus - so that you can validate and then set the Cancel property of the eventArgs if you want to prevent the user from leaving the control. If you then want to do cross-field validation, you can just do it in the Click handler of the OK button. You don't need to call Validate(). Just do the validation that you need to do right there by examining the values in whatever controls you need to look at.

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