>I am using the ON KEY LABEL to "bind" the up and down arrows to move around a table. I have created two procedures, GO UP and GO DOWN so the user can scroll up and down if they are are the grid or not.
>The form name is searchsub.
>Here's the problem, this works when running in VFP but when I compile the APP and run it from a program I get an error.
>(OBJECT searchsub is not found)
>
>The error happens when you are on the form.
>
>Here's the code:
>ON KEY LABEL UPARROW searchsub.GOUP
>
>Am I doing this completely wrong?
>How do I do this?
>
>Thanks,
>
>Jim
I'm amazed that this would work in the VFP environment. You can reference the form with:
ON KEY LABEL UPARROW _SCREEN.ActiveForm.GOUP()
Have you considered trapping those keys in your forms .KeyPress method? That's the VFP way of doing things, not the older ON KEY LABEL.