Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How filling a property with an objectreference at design
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00168392
Message ID:
00168416
Vues:
21
>Hi all,
>
>I've created a property for my subclassed label thats called 'boundto'. This property shall reference to a textbox. However I don't know how to insert an object-reference into this property at designtime. Is this possible at all or do I have to continue with using macro-substitution?
>
>Thanks in advance

First, boundto is a property of other base classes like a textbox and could be misleading to anyone else looking at the program.. I would suggest changing the property name.

To assign the object reference

This.BoundTo = Thisform.OtherTextField (or whatever the object name is).

Just make note that before the "othertextfield" object can be released (as when a form closes), you must first release the This.BoundTo value. Otherwise the dangling object reference will prevent the form from closing.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform