Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read Cycle
Message
De
20/08/1997 09:42:37
Andy Roth
Neyenesch Printers
Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00045674
Message ID:
00045801
Vues:
57
> First your answer; > > ON KEY LABEL F10 DO FindIt WITH StartCust, EndCust > > pass both vars to the routine and set them both in the routine. > > Now, there is a hidden problem with this approach and that is that OKL's > are intercommand interrupts, meaning that the OKL will fire between > executing commands. This means that if the vlaid code for a get is running > and the user hits F10 that valid code will be interrupted and the OKL > routine will run. This could cause major headaches in the app, bot only > the data problems it can create but also the process of finding out what > went wrong. > > A better approach is to use menu short cuts. This can be done without ever > showing the menu. In the form's Setup you can; > > DEFINE POPUP MyPop AT 0,0 > DEFINE BAR 1 OF MyPop PROMPT "Junk" KEY F10 > ON SELECTION BAR 1 OF MyPop DO Fintit WITH StartCust, EndCust > > In FindIt you check _curobj to see if you are in the right GET, if not just > return otherwise do your thing. > > Make sure you don't ACTIVATE the popup and it will never be seen, ni the > cleanup for the screen you can release popup MyPop. > > Menu short cuts are ONLY available when Foxpro is in a waiot state > expecting user input, so it will not interrupt running code like OKL will. > > > Thanks for your help I really appreciate it. Andy Roth andyroth@electriciti.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform