Bharat
Bharat

Reputation: 177

Avoid the message 'Press space bar to continue" - PROGRESS 4GL

I am new to Progress. I use the below query to call a external program from progress editor. The issue I am facing here is I'm getting the message press space to continue from the external program. Due to this message the program completion is not happening and it got stuck until I press any key from the keyboard. This pause 0 before-hide no-message helps to hide the message I think. Its not letting the program execution for the completion. let me know where am I making mistakes and modify the below query

output to value("/home/test/cim.out").
  input from value("/home/ast/cim.in").
  pause 0 before-hide no-message.
  {us/bbi/gprun.i ""xxxxx.p""}
  input close.
output close.

Upvotes: 0

Views: 1031

Answers (2)

Raphael Frei
Raphael Frei

Reputation: 416

Add QUIT. at the end of the procedure to ensure it's full closing. I was having the same issue a while ago...

Upvotes: 0

Tom Bascom
Tom Bascom

Reputation: 14020

pause 0 before-hide.

Will override default PAUSE messages that occur when a pause is being automatically generated. For instance when a FRAME is being automatically hidden or a series of MESSAGE statements are being generated. It does not, however, override an explicit PAUSE statement. For instance:

define variable i as integer no-undo.

pause 0 before-hide.

do i = 1 to 10:
  message i.
  if i modulo 5 = 0 then pause message "i modulo 5 = 0".
end.

To solve that problem you will need to edit "xxxxx.p" and find out where the PAUSE is coming from.

Upvotes: 2

Related Questions