|OK, here' s the deal. Put this in your code somewhere before the user opens the window:|
ON KEY LABEL CTRL+W DO CHKWIN
Make chkwin a function in your main program to do whatever you need.
Sent by Colin Clark on 01/24/2002 06:29:00 AM:
I'm a junior programmer just getting my feet wet with VFP6 (actually I'm up to my waist!) My company wants me to use a browse in a form. Here's the problem: I have a table with a memo field that activates a window which users can type additional information. It appears after the user does a CTRL+PGDN in a browse window. I want to keep the user from using CTRL+W to quickly in the form thereby closing both windows instead of just the top one (memo). Is there any way to reference this window for error trapping?
If window active
Any help is greatly appreciated. Thanks.