Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding properties and methods.
Message
 
À
18/01/2006 12:57:36
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
01087772
Message ID:
01088164
Vues:
13
Hi Dragan -
You answered one of my question which is you CAN add properties and methods to objects contained in a form at design time while your in the form designer. Although the changes are not saved the next time you open the form in the form designer, you can first save the contained object to a class and drop it back on the form, probably not ideal for most situations, but I think this would be useful in certain situations - as long as you save the objects you've added members to before exiting the form designer. Thanks for this insight.



>>Hi Dave,
>>
>>Thanks for providing me with a better understanding on this subject. I figured there were good reasons for not being able to modify class definitions through the form designer. Know that I know why, it's much easier for me to live with.
>
>Actually, you can add new methods to contained objects, via a builder. Like this - select a contained object first in the designer, and type this in the command window:
>
>
aSelobj(a)
>a[1].writemethod("newmethodname","lParameters zz",.t.)
>
>And you can even edit that method and add more lines to it. The problem is, as Fabio said, with the VCX loader, which will not load them next time you open the class in the designer. I've tried this before, and the extra methods in the contained objects were just gone. Probably when the class (or form) is compiled.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform