>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
I think it is better to use form.KeyPress() method with form.KeyPreview = .t.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison