>Dragan,
>
>>Opened in class browser and took a look at the source code, copied it into a .prg and found no way to run it.
>
>The class browser does not generate runable code, especially if there is more that one level of containership invloved.
>
>You have to write an add-in that took each object and generated it's DEFINE CLASS (like what you did at the end) and convert the ADD OBJECT lines to use the defined class.
Actually, it will be a generated routine, or routine templates, so this actually solves which way to go. It's not only the class browser, but it's rather that VFP doesn't support having methods for objects in a form in a formset defined programmatically, as it does for forms. I think I will eventually do both: kick out the formset _and_ generate the Define Class snippets.