On 3/18/10 10:12 AM, Kent Belan wrote:
> Hello,
> I am working on some legacy code trying to fix a problem.
>
> Here is the code:
>
> Define window inqbrowse from 2,1 to 40,80 in screen
> select tickets
> brow in window inqbrowse
>
> The problem is if the user clicks outside the browse window, it disappears
> and the form freezes.
>
> The form that calls the browse window is a modal in top level form.
>
> I have tried to make a modal form and browse in formname but that is not
> working.
>
> any ideas ?
>
> by the way, I hate browse commands in production code ...

I think you have to change that define window to not be "in screen" (which is 
invisible when you use a top-level form) but "in <reference to top_level 
form>". But, 
I'm very rusty with VFP.

The better thing would be to refactor this to not use browse at all. Change it 
to 
'browse to name oTempGrid', and then oTempGrid.SaveAsClass() it, and then in 
the 
production code instantiate the grid class you saved. That may or may not have 
a load 
of gotcha's with it, though. Can't remember.

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to