>I have a idea. Build data forms dynamically based on cursor data, but how can validate the fields? My idea is add code to the objects, how again?
Your data validation should not be that tight with the user interface code. You'd be better off creating a business object that has all of the validation code in it. You can use standard names for each field, so the right methods can be called by your dynamic form. For example:
define class Customer as businessBase
function ZipCode_AllowSave
endproc
function TermsCode_AllowSave
endproc
enddefine
You can write a program (our use a code generator) to create code like the above, based on your data files.
There is a lot more that would have to be done to make this fully functional...
What do you think?
Steve Gibson