statusmessage
statusmessage
TEXT

The statusmessage statement displays a message in the status bar at the bottom of the procedure window.

Parameters

This statement has one parameter:

text – is the message to display.

Description

The statusmessage statement displays a message in the status bar at the bottom of the procedure window. If the procedure window is not open this statement is ignored.

Panorama normally displays the result of each assignment in the status bar while single stepping. The statusmessage statement allows you to display anything you want to help with debugging your program.

This example uses the statusmessage statement to help monitor the progress of a loop.

    local theWord,n,words,sentences
    n=1 words=0 sentences=0
    loop
        theWord=array( replace( replace(Joke,cr()," "),"  "," "),n," ")
        stoploopif theWord=""
        theWord=strip(theWord)
        words=words+1
        statusmessage " ("+pattern(sentences,"###")+"-"+pattern(words,"####")+")"
        if theWord contains "." or theWord contains "?" or theWord contains "!"
            sentences=sentences+1
        endif
       n=n+1
    while forever
    message "Average number of words per sentence: "+str(words/sentences)

Note: If you click on the status bar, Panorama will select and scroll to the statusmessage statement that generated the status text.

See Also

- @dialogs --
- alert -- displays a modal alert window with a message and one or more buttons.
- alertcanceldelete -- displays a modal alert window with a message and two buttons: *Cancel* and *Delete*.
- alertcancelok -- displays a modal alert window with a message and two buttons: *Cancel* and *Ok*.
- alertdeletecancel -- displays a modal alert window with a message and two buttons: *Delete* and *Cancel*.
- alertmodal -- displays a modal alert sheet (not attached to any window) with a message and one or more buttons.
- alertnoyes -- displays a modal alert window with a message and two buttons: *No* and *Yes*.
- alertok -- displays a modal alert window with a message and one button: *Ok*
- alertokcancel -- displays a modal alert window with a message and two buttons: *Ok* and *Cancel*.
- alertoksmall -- displays a modal alert window with a message and one button: *Ok*
- alertrevertcancel -- displays a modal alert window with a message and two buttons: *Revert* and *Cancel*.
- alertsavecancel -- displays a modal alert window with a message and two buttons: *Save* and *Cancel*.
- alertsheet -- displays an alert sheet (attached to the current window) with a message and one or more buttons. Note: with the introduction of OS 11, Big Sur, sheets no longer appear to slide down from the title bar, but open a dialog centered on the active window.
- alertyesno -- displays a modal alert window with a message and two buttons: *Yes* and *No*.
- alertyesnocancel -- displays a modal alert window with a message and three buttons: *Yes*, *No* and *Cancel*.
- beep -- makes the computer speaker beep once.
- bigmessage -- displays a message alert.
- cancelok -- displays a modal alert window with a message and two buttons: *Cancel* and *Ok*.
- gettextokcancel -- displays a modal dialog that asks the user to enter an item of text.
- giantmessage -- displays a message alert.
- message -- displays a modal alert window with a message.
- noyes -- displays a modal alert window with a message and two buttons: *No* and *Yes*.
- nsnotify -- delivers a notification.
- okcancel -- displays a modal alert window with a message and two buttons: *Ok* and *Cancel*.
- rudemessage -- displays a message alert.
- stopalert -- displays a modal alert window with a warning icon, a message and one or more buttons.
- tallmessage -- displays a message alert.
- yesno -- displays a modal alert window with a message and two buttons: *Yes* and *No*.

History

Version | Status | Notes
10.0 | Updated | Carried over from Panorama 6.0. Now allows you to click on the status bar to jump to the source code line that generated the status display.