Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox.change events not firing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00153089
Message ID:
00153105
Vues:
21
Larry,

As Nick and David suggested, using the form's KeyPress event (with KeyPreview set to .T.) is a much better solution then ON KEY LABEL. You can check for EOF or BOF in the KeyPress event. The ProgrammaticChange only fires when you explicitly set the value of the textbox (i.e. THISFORM.MyTexbox.Value='Foo'). Just moving the record pointer and refreshing won't do it even thought the box's value has changed.

>I'm using PGUP and PGDN to navigate through records. When the user's on the last record, and they press PGDN, I want the form to close. Conversely, if they press PGUP while on the first record, I want the form to close.
>
>I'm capturing PGUP and PGDN using ON KEY LABEL and I thought I could use txtMyTextBox.ProgrammaticChange or txtMyTextBox.InteractiveChange to test for eof()...
>
>Problem is... neither one of these events fire when the text box contents change as we move to the next record... Why not? what other method is available to detect this?
>
>Is there a better way?
>
>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform