Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eventbinding to a property
Message
De
04/02/2016 03:36:17
 
 
À
04/02/2016 03:33:10
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01630781
Message ID:
01630792
Vues:
46
>>>>>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
>>
>>It's a long time since I did this myself, and I have forgotten in which application I needed it. So unfortunately I can't provide any sample code. I wish I could be more helpful, but I am in the middle of some programming which need me being focused on my own problems.
>
>No problem. Thank you anyway. I guess it will not work as I thought - I found an example in my own old code that circumvents the problem ....

Good. To be honest, I am not sure I really understood your problem, most likely since I didn't spend much time trying to...! :-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform