Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with memberclass
Message
De
13/05/2003 17:34:09
 
 
À
13/05/2003 02:48:50
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00786711
Message ID:
00787948
Vues:
31
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.""
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform