Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eventbinding to a property
Message
From
04/02/2016 04:55:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/02/2016 04:52:09
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
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:
01630801
Views:
42
>>>>>If I AEVENT - EVALUATE in eventhandler, I simply can EVALUATE in otherpropuser. This is lesser EVALUATE.
>>>>>The idea was to not EVALUATE at all.
>>>>>
>>>>>Lutz
>>>>
>>>>
loBinder=CREATEOBJECT("binder")
>>>>BINDEVENT(_SCREEN, "caption", loBinder, "bound")
>>>>_screen.Caption = _screen.Caption+" "
>>>>
>>>>
>>>>DEFINE CLASS binder as Custom
>>>>
>>>>*---------------------------------------------------
>>>>	PROCEDURE BOUND()
>>>>*-- dn 2016/02/04
>>>>		SET STEP ON
>>>>		AEVENTS(aE, THIS)
>>>>		oSrc=aE[2]
>>>>		lcP=aE[3]
>>>>		luVal=GETPEM(oSrc, lcP)
>>>>		?luVal
>>>>ENDDEFINE
>>>>
>>>
>>>
AEVENTS(aE, 0)
to get the caller :)
>>>Is get Pem betterr then EVAL?
>>
>>
>>Should be faster. It doesn't involve the whole expression evaluator, this is just the simper "get me a property value" mechanism.
>
>Then the rules from above do not change. Simpler in otherpropuser. Thanks for the hint.

Well I'm not quite clear on what the rules are, but at least this way you can bind multiple properties to the same method, and the method would know the name and value of the property which changed. If you need something else, then I solved the problem you didn't have :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform