Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How filling a property with an objectreference at design
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00168392
Message ID:
00168416
Views:
26
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform