On 01/31/13 10:09 AM, Ken Dibble wrote:
Even if there was some way to make this work, it's a bad idea to tie validation code to the controls that display the data. If you need to handle the same data elsewhere, now you have to duplicate your validation code.
I NEVER put the validation code in the form. The Valid() or LostFocus() method does nothing but call a validation method in the business object. I have several cases where 8 or 10 fields call the same validation method (main case, checking ranges of numeric fields). e.g., DiameterA calls oOrder.NumVal(15,30) while ThicknessA calls oOrder.NumVal(5,7.8).
Dan _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/510aefdd.8070...@san.rr.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.