>>>Hi, I've been exploring the possibility of using a "browse" window for a fast lookup. My biggest problem is that I cannot detect when the "browse" window is closed by the user so that I can use RECNO to "lookup" the information required. Can anyone help? Even if it is only to tell me it can't be done. I don't want to waste any more time on the project if it's not possible.
>>>
>>>Rgds
>>>Petras
>>
>>Why using BROWSE instead of GRID. Browse is no longer advisable with OOP world. Any proble with GRID???
>
>You could use the WEXIST(WindowName) function to test for the browse window. The check could go in a timer event.
As long as you don't use the NOWAIT clause on the BROWSE, then the code will 'sit' on the BROWSE statement. As soon as the BROWSE window is closed, the code will continue and you will know that the user has closed the browse - you could possibly check the LASTKEY() to see if they pressed ESCAPE and didn't want their selection to be accepted. Its what we used to do on an old FPW 2.6 application
regards
Ian