Any reason you don't do your MemberClasses as visual classes? It seems to get the Class property correct when it comes from a .VCX instead of a .PRG.
Here's an interesting note. If you set the MemberClassLibrary property of the grid/pageframe in the Init of the form or of the grid/pageframe Init to the .PRG that contains your class definitions, it sets the Class property correctly.
>Good Morning Fred,
>
>thank you for pointing that out.
>
>It looks like there is something strange in the use of the
name and the
class properties within an class definition. It would be nice to have the name propery free to preselect the name of objects.
>
>So the problem now is:
>
>How can I use a Member Class in a way that the class property shows the right class and the name of the object created is the same as it would be without of the use of memberclass?
>
>The only way I see is to ignore member class and add the members with ADDOBJECT as I have done before.
>
>
>Agnes
>
>>
>>You did see this note in the Help for Member Classes, right?
>>
>>"Caution Do not change the Name property for a member class in a program (.prg) -based class definition at design time. Doing so can result in generating the message, "Class definition name is not found.""