Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eventbinding to a property
Message
From
04/02/2016 03:06:16
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
04/02/2016 02:53:56
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01630781
Message ID:
01630788
Views:
59
>>Hi,
>>
>>I do not understand how to
BINDEVENT
to a property so that the delegate gets the value I set to the property.
>>Any ideas?
>>
>>Lutz
>
>If you BindEvent to a property, the delegate event will trigger when the property changes. The delegate event can be an assign or refresh method of the delegate, something like "this.value=source.value"

Good morning Tore.

It just triggers. That's what I see.

My problem is, that I do not know source.value IOW, I do not know which source property will bind to the delegate. I just need the value.

I know I can AEVENT and EVALUATE to get the value. But this would fire over and over. To much.
My idea (and that was what I understand from the help with the implizit assign and so on) that I would recieve the value set to the source as a parameter.

To bound to an Assign will not help to - it's a bunch of properties. And I do not need the extra code if I'm not bound.

Seems to be a design flaw.
I will solve it otherwise. If I need to EVALUATE something I can do it on the place where I need the value, but only in this very moment. Or call a hook method ... Let's throw the dice ...

Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform