Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eventbinding to a property
Message
De
04/02/2016 04:33:15
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
04/02/2016 04:24:12
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
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:
01630794
Vues:
57
>>Question is:
>>
>>to what value?
>
>Looking at aEvents()... if you pass the handler (i.e. this) as the second parameter, it should return the source object in the 2nd column and event in 3rd - and I guess this 3rd column may be your property name. Worth a try.

Thank you, I have considerd this.

The problem is like. (simplified, it spans over multiple of classes)
DEFINE CLASS frmForm as FORM
 gcPropSource = 'gnIdx'
 gnidx = 0
 gnotherprop = 0

 procedure eventhandler
*set gnotherprop 
 endproc

 procedure otherpropuser
*do something with gnotherprop, but not bound to the event
 endproc

 procedure init
  bindevent(THIS,THIS.gcPropSource,THIS,'gnotherprop')
 endproc
ENDDEFINE

DEFINE CLASS frm inherited as frmForm 
 gcPropSource = 'gnOoops'
 gnOoops = 0
enddefine
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
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]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform