Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force browse window to close programatically
Message
From
19/05/2009 12:52:09
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01102177
Message ID:
01400714
Views:
68
Hi Sergey,

How are you?

I have an old app, fox 2.6.

There's an employee form with an employee search button on it.

Search on last name, first name, ssn.

The employees found come up in a browse window, last name starting with C, for instance.
The user clicks on the employee he's looking for and hits ESC to close the browse window.

Is there any other way to close this window besides using ESC or
clicking the button on the upper left of the browse window and selecting close in the drop down?

Can I trap the double click in the row and close the window?
or, can I trap for the enter key being pressed?

I can't quite get it right.

I'd appreciate your help.
Deb




>You're welcome.
>I would stronly recoment to use a form with a grid instead of BROWSE in your applications. It gives you full control over it appearance.
>
>>Thank you Sergey.
>>Works beautifully. I tried without the LAST clause & was not getting what I want. After using the LAST clause, I have no problem.
>>
>>
>>>
>>>SELECT...INTO CURSOR Query
>>>BROWSE LAST TIMEOUT 30
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform