Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindevent,scx and assign.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00835416
Message ID:
00835529
Views:
20
Fabio,

I noticed this myself. You can use AEvents(laObj, 0) to get the object reference of the object that triggered the delegate. laObj(1).property to get the value.

I use BindEvent(obj, ‘property’, delgateobj, ‘method’, 1).

HTH,
Tracy


>Hi Craig,
>
>I read the Help.
>
>OK, open the problem.
>
>I have a property myProperty on various class and SCX.
>I have a objManager object.
>
>I need
>
>BINDEVENT(object,"myProperty",objManager,"ManagerMethod")
>
>when a object is build
>( objects are build on random order and random type )
>
>On objManager.ManagerMethod i need to use the new value of object.myProperty.
>
>If i use
>BINDEVENT(object,"myProperty",objManager,"ManagerMethod")
>i see myProperty change event, but not the value.
>
>If i use
>BINDEVENT(object,"myProperty_Assign",objManager,"ManagerMethod")
>i found tons of problems.
>
>Exist a way for do this, without create a surrogate assign method on any class ?
>
>Fabio
Tracy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform