Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label puzzler
Message
De
20/08/1999 17:36:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00256086
Message ID:
00256088
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform