Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Really, you could make this even more fluent by adding this in front of TForm in your parameter def (this TForm form) Then you could write myFormInstance.IsValid(); Commented Apr 15, 2012 at 4:50
  • You could, but I would never pursue this as a real design pattern for an application. (Hence my recommendation for per form validation). Commented Apr 15, 2012 at 4:54
  • Oh, I was not disagreeing with that. I was just adding to the code solution that you had :) Commented Apr 15, 2012 at 4:55
  • Yea, I interpreted your response as such. ;) Commented Apr 15, 2012 at 4:57