Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key label puzzler
Message
From
20/08/1999 17:36:45
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00256086
Message ID:
00256088
Views:
29
>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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform