Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Here's a good one for you....ON ESC
Message
From
27/05/1998 08:54:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00100351
Message ID:
00102321
Views:
34
>>>>>Thanks, I placed the lastkey code in the lost focus and finally got it
>to work. Have a great day!
>
>Becky
>
>O.K., how should I do that? Can I put the code in menu form that activates
>>>the browse or should I place in the init of the browse form?
>>>
>>>Thanks and have a good day!
>>>
>>>Becky
>>>
>>>vfp 3.0 win 95
>>>>>
>>>>>I have a browse screen with a combo box, on
>>>>>selection of record, pageframe is opened automatically
>>>>>to display record.
>>>>>
>>>>>I now want to use ESC Key to halt execution of code that
>>>>>opens pageframe which lies inside the lostfocus event
>>>>>of the combo box, and close the form or release the form.
>>>>>
>>>>>I have tried putting set escape on and on escape thisform.release,
>>>>>which lies in gotfocus event of form, however, code fires anyway and opens pageframe to display record.
>>>>>
>>>>>Once record is displayed form does release. I'm thinking I need
>>>>>a do case or if statement, any thoughts?
>>>>
>>>>i think you need to set the escape key before you enter the form (or formset)
>>Becky,
>>I'm not sure how ESC works there. But I don't think code is executing slow enough to let you press ESC in between so I assume esc is causing to lose focus also. If it's the case surround the lostfocus code with "if lastkey()=27" and/or keep a commandbutton with cancel=.t. to catch esc. I think it's more convenient than using ON ESC.
>>Cetin
Becky,
Sorry but is there a question here or lastkey() worked ? I cannot follow the quoting well. Pls snip or separate with "hr" tag.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform