Progress
Language Reference


STATUS Statement

Interfaces
OS
SpeedScript
All
All
No

Specifies the text that appears in the status line of a window. Progress displays the following default messages on that line:

SYNTAX

STATUS
  {   DEFAULT [ expression ]
    | INPUT [ OFF | expression ]
  }
  [ IN WINDOW window ] 

DEFAULT expression

Replaces the default status message when a user is running a procedure (the default status message is blanks). The expression must be character and must be enclosed in quotes if it is a constant. If you do not specify an expression, Progress resets the STATUS DEFAULT line to its original state. The STATUS DEFAULT is a maximum of 63 characters.

INPUT OFF

Tells Progress not to display an input status message.

INPUT expression

Replaces the default status message when a user is entering data into a frame field. The expression must be character and must be enclosed in quotes if it is a constant. If you do not specify an expression, Progress resets the STATUS INPUT line to its original state.

IN WINDOW window

Specifies the window in which to set the status message. If you omit the IN WINDOW phrase, the STATUS statement applies to the current window.

EXAMPLE

This procedure replaces the default status messages with two other messages.

r-status.p
STATUS DEFAULT "All Around Sports Order Processing System".
STATUS INPUT "Enter data, or use the " + KBLABEL("END-ERROR") +
  " key to exit".
FOR EACH customer:
  DISPLAY name.
  FOR EACH order OF customer:
    UPDATE order-num promise-date order-date ship-date.
  END.
  UPDATE credit-limit.
END. 

NOTES

SEE ALSO

MESSAGE Statement, PAUSE Statement


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095