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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BROWSE from Screen - Problem with Focus

Status
Not open for further replies.

StewartJ

Programmer
Apr 3, 2002
74
GB
The last piece of code in the READ WHEN clause of my screen is :

BROWSE FIELDS Changes.ControlTxt :20 :H = 'Item', Changes.OldValue :20 :H = 'Old Value', ;
Changes.NewValue :20 :H = 'New Value', Changes.Status :15 :H = 'Status' ;
NOEDIT NODELETE NOAPPEND NORMAL NOMENU NOWAIT ;
TITLE "Changes Awaiting Authorisation" ;
PREFERENCE AwaitAuth

Changes is a writable cursor.

This works fine in that the browse window displays behind the screen. My problem is that I cannot give it the focus so that the user can scroll it. The screen is NOT modal and I have tried varying the command by removing all combinations of the last three lines. The only thing that works is removing the NOWAIT clause but this causes the browse to close as soon as the focus moves to the screen. Any suggestions would be much appreciated.
 
I think you need to move the BROWSE out of your READ WHEN. Since the WHEN is looking for a logical condition in order to either continue on with the READ or just bypass it, if you have NOWAIT, the program execution is going to stop at the READ statement and ignore the browse window.
Dave S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top