Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON KEY LABEL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00584338
Message ID:
00587364
Vues:
44
Hi!

>Vlad,
>
>Making a blanket suggestion of using OKL is not a good idea. OKL is an intercommand interrupt, that is it will interrupt running code. No other user entry operations will do this, only the OKL. That is both good and bad. If you need something to interrupt code then OKL is the way to go. In all other situations OKL should be avoided as it will interrupt code that you did not want interrupted.
>

Jim, I just ran a simple test with OKL and with "_VFP.AutoYield=.F." OKL does NOT interrupt the code in such case till the waiting state or till the DOEVENTS or till the setting of _VFP.AutoYield back to .T. Though you're right - I had to tell about this (_VFP.AutoYield) - thanks for pointing to this issue.

>
>
>
>>Just use ON KEY LABEL - it overrides any default behaviour.
>>
>>>Thank you for your advice.
>>>
>>>
>>>I try keypress with keypreview, but problem is I still cannot use F1,F2,F10...
>>>How can I disable the default F1, F2 F10 behaviour ?
>>>
>>>TIA.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform