Consultor Eletrônico



Kbase P155245: PAUSE is ignored when CURRENT-WINDOW has no STATUS-AREA
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/2/2009
Status: Unverified

SYMPTOM(s):

PAUSE statement ignored in a loop

PAUSE is ignored when CURRENT-WINDOW has no STATUS-AREA

Pause has no effect

FACT(s) (Environment):

Windows
Progress 7.x
Progress 8.x
Progress 9.x
OpenEdge 10.x

CAUSE:

Bug# OE00192927

CAUSE:

The window that is in focus when a PAUSE statement is issued must have a STATUS-AREA in order for the PAUSE statement to be effective because the statement produces a status message.

FIX:

If a STATUS-AREA is not desirable then use one of the following options:
- add NO-MESSAGE option to the PAUSE statement:
PAUSE 1 NO-MESSAGE.
- call the Windows SLEEP function as demonstrated below:
RUN sleep ( 1000 ). /* time is in milliseconds- 1000 = 1 second */PROCEDURE Sleep EXTERNAL "KERNEL32":
DEFINE INPUT PARAMETER lMilliseconds AS LONG NO-UNDO.
END PROCEDURE.