Tristan, Personally I scatter to a named object which means that I can change the fields in the underlying table without many changes. I must admit it would be better to add the individual field objects but this does create a HUGE amount of work which is not really necessary.
Abstracting the validation onto the form or even an intermediate validation class does officially break the rules but as long as you are consistent I see no problem. In fact I see an advantage in that you can deal with individual field level validation a lot easier and immediately as opposed to at the record level which is sometimes too late. One good improvement to VFP would be to be able to add a property to a scattered object and then add BindEvents() to its Access/Assign methods. Dave Crozier "A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match" - Bill Bryson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tristan Leask Sent: 04 July 2006 08:59 To: [email protected] Subject: field storage on an object Morning all, Here is a question to anyone but the states (as they are on hols 4th July and all that). What is your preferred method of storage for fields on a biz object? Create a property for each field on the object and load them in individually or create 1 property and then scatter the fields from the table into that? Am I right in thinking the second way is the lazy mans approach and really you should do it the first way thus giving you access to the assign and read methods? Cheers Tristan Leask Software Developer Marine Software Ltd [EMAIL PROTECTED] www.marinesoftware.co.uk ---------------------------------------------------------------------------- ---------------------------------- Unless otherwise agreed expressly in writing by Marine Software Limited, this communication and attachments are to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it was sent. If you are not the intended recipient of this communication you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error. [EMAIL PROTECTED] ---------------------------------------------------------------------------- -------------------------------------- [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** 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.

