Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BIndEvent()
Message
De
06/05/2003 22:33:24
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
BIndEvent()
Divers
Thread ID:
00785656
Message ID:
00785656
Vues:
40
Hi all,

If I set the flag for BINDEVENT() to 1, is the control totally outside of the scope (program stack/execution) of oSource when the oDelegate event fires? Question is stated in detail in the code sample.
oC1=createobj('cls1')
oC2=createobj('cls2')

bindevent(oC1,'bindtest',oC2,'bindtest',1) && source then delegate flag is used

oC1.bindevent()

define class cls1 as session
  proc bindtest
    * set step on
    wait wind 'cls1'
  endproc
  proc destroy
    wait wind 'cls1'
  endproc
enddefine

define class cls2 as session
  proc bindtest
    *-- when this method is executed,
    *-- is this totally out of scope in regards to program stack/execution
    *-- in reference to oC1.  Meaning, after this event fires, does program control
    *-- control/stack goes back to oC1 or not?
    *-- Running the debugger shows that the program control does not revert back
    *-- to the source (oC1) object.  Hopefully, someone can verify that this is 
    *-- indeed the case.
    wait wind 'cls2'
  endproc
  proc destroy
    wait wind 'cls2'
  endproc
enddefine
ramil
~~ learning to stand still
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform