Dianne,
Sticking with Kevin's advice I've had better luck making controls and then associating business objects with them. So my address class contains all the fields we need and the BizObj we developed to control it.
I'm not sure if that's the kind of thing you are trying to do.
Bill
>We're trying to create objects that can be used on several different forms. Particularly we are having trouble placing the caddress control from kcustctl into a bizobj and then subsequently on a form.
>
>Created class testobj from kbizobj and dropped caddress control onto it.
>Created class testobjform from cbizobjform and dropped testobj onto it.
>A data environment was added to the odeloader and control sources filled in for all the controls.
>When we run the form and then close it, VFP quits with an 'illegal operation'.
>
>Any thoughts why or how to correct this?
>
>We'd like to use this testobj on several different kinds of bizobjforms.
>
>TIA
>Dianne
William Hartgrove
Senior Elephant Waxer
Hartgrove Amusent Park and Youth Hostel
Austin, Texas