Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Object from Class With All Properties/Methods
Message
 
 
À
08/08/2001 13:50:26
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00541381
Message ID:
00541432
Vues:
16
>>>But you cannot add the custom methods (if you need them) to the instance of the default VFP class and can add the custom properties only at runtime with AddProperty method.
>>
>>Ahhh... I got it. So, if I ever need an object that has custom properties or methods I must create a class and an instance. I wonder why? Seems like it would be handy for a couple reasons. First just to have it without the class link if you needed it, and second so the object could be tested fully then saved as a class if it was needed elsewhere. Oh, well... Thanks Nick!
>
>You can do this by designing the object visually in a form and then, when it's working, chose Save As Class. Or have I misunderstood, again?

You can not add properties and custom methods to VFP Base-classes in design-time and only properties in run-time. So, this tecnique would not work for combos.

Though, you know it by yourself, of course... :)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform