Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force browse window to close programatically
Message
De
19/05/2009 12:52:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01102177
Message ID:
01400714
Vues:
69
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
>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform