Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to leave a Browse Window with ENTER 1

Status
Not open for further replies.

snowsan

Technical User
Oct 21, 2000
1
US
Please I would like to know how I could leave a browse window with a ENTER Key push. I always been leaving browse window with ESCAPE, but in the application I am desingning need to leave with ENTER. Thanks
 
Hi
Just before the browse
ON KEY LABEL ENTER KEYBOARD CHR(27)
BROWSE.... command
ON KEY LABEL ENTER

Hope this helps ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Note that if this is an updatable BROWSE, then if the current field was changed, an ESCAPE (whether actually pushed or from an OKL) will cause the value to revert.

Rick

 
If you do not like to use escape values
on key label ENTER keyboard "{CTRL+W}" David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Snowsan,
To gain heaps more control over your browses, I first create a window to display them in. (Usinging DEFINE WINDOW....)

Then, I set up a procdure, called something linke BROWSEL (for Browes with selection), just before the brows, I add an ON KEY LABEL ENTER DO BROWSEL, or ON KEY LABEL LEFTMOUSE do BROWSEL

This allows me to control the brows with double click from Left mouse, a more natural way of selecting from browses then the Enter Key.

Then, when all is said and done, when you want the BROWSE to close, simply issue:

RELEASE WINDOW <windowname>, and it all goes away! This also allows you a nice, clean way to put titles (even dynamic titles) in your browse windows.

Hope this helps,
-Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top