OK folks I am embarrassed to even ask this question, I know I am missing some so obvious, but I am driving myself nuts and I am hoping someone take mercy on me, but go head and poke fun at me I deserve it (but you still need to provide an actual working answer <smile>)
Here is the situation, I want the user to click on a form button and browse a table (really a readonly SQL cursor result). Simple enough right? just do:
Well no that does not work, e.g. the browse window is not show and the application ‘freezes’ as it waits for the user to close the none-visible browse.
FYI: the code is in the click method of a button on a visual container class which is added to a page frame at runtime which is on a form.
Now here comes what I think is the important bit, the form’s WindowTYpe is MODAL and SHOWWINDOW = 1 (In Top level Form) e.g. this is MDI application. As I type this I wonder if the MODAL setting is the biggest issue, but I think I need the MODAL setting for other reasons.
Anyhow I have been trying to find a solution by throwing the kitchen sink at the problem. Here is the latest of a long string of code attempts.
When I do a SET STEP ON and debug I can see that the running application holds on the BROWSE WINDOW wBrowse line of code.
Bottom line question: What code do I need to allow the user to see the information via a browse?
Here is the situation, I want the user to click on a form button and browse a table (really a readonly SQL cursor result). Simple enough right? just do:
Code:
Select qTable
Browse normal
Well no that does not work, e.g. the browse window is not show and the application ‘freezes’ as it waits for the user to close the none-visible browse.
FYI: the code is in the click method of a button on a visual container class which is added to a page frame at runtime which is on a form.
Now here comes what I think is the important bit, the form’s WindowTYpe is MODAL and SHOWWINDOW = 1 (In Top level Form) e.g. this is MDI application. As I type this I wonder if the MODAL setting is the biggest issue, but I think I need the MODAL setting for other reasons.
Anyhow I have been trying to find a solution by throwing the kitchen sink at the problem. Here is the latest of a long string of code attempts.
Code:
Window_Title = [This is a test]
DEFINE WINDOW wBrowse FROM 20,20 TO 44,80;
CLOSE GROW COLOR SCHEME 10;
FONT 'Courier', 12 FLOAT MDI ;
ZOOM NONE TITLE Window_Title
ACTIVATE WINDOW wBrowse IN SCREEN top
BROWSE WINDOW wBrowse
DEACTIVATE WINDOW wBrowse
RELEASE WINDOW wBrowse
When I do a SET STEP ON and debug I can see that the running application holds on the BROWSE WINDOW wBrowse line of code.
Bottom line question: What code do I need to allow the user to see the information via a browse?