Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BINDEVENTS not always binding?
Message
De
22/12/2004 23:56:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
BINDEVENTS not always binding?
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
00971677
Message ID:
00971677
Vues:
110
I'm trying to bind some events in a textbox in a column of a grid to methods in the grid. The code looks like this (done in the INIT of the textbox)
      lcEvent='Click'
      BINDEVENT(THIS,lcEvent,THIS.PARENT.PARENT,'TextBox'+lcEvent)
      lcEvent='RightClick'
      BINDEVENT(THIS,lcEvent,THIS.PARENT.PARENT,'TextBox'+lcEvent)
      lcEvent='GotFocus'
      BINDEVENT(THIS,lcEvent,THIS.PARENT.PARENT,'TextBox'+lcEvent)
      lcEvent='When'
      BINDEVENT(THIS,lcEvent,THIS.PARENT.PARENT,'TextBox'+lcEvent)
      lcEvent='Valid'
      BINDEVENT(THIS,lcEvent,THIS.PARENT.PARENT,'TextBox'+lcEvent)
      lcEvent='LostFocus'
      BINDEVENT(THIS,lcEvent,THIS.PARENT.PARENT,'TextBox'+lcEvent)
      lcEvent='InteractiveChange'
      BINDEVENT(THIS,lcEvent,THIS.PARENT.PARENT,'TextBox'+lcEvent)
      lcEvent='KeyPress'
      BINDEVENT(THIS,lcEvent,THIS.PARENT.PARENT,'TextBox'+lcEvent)
This works for six of the eight events. That is, I can verify that the method in the grid is invoked as expected, except for Valid and When.

Any ideas why this would be true?

Thanks,
Jim Nelson
Newbury Park, CA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform