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


History

VersionStatusNotes
10.0UpdatedCarried 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.