The ShowStatus method displays a message in the Reports Explorer status bar. This can be used to inform the user when a script takes some time to execute. ShowStatus returns the former message so you can restore it with a second call.

Syntax

ShowStatus(Message as String) as String

Parameters
Message
The message to display.

Return Value
The former message in the status bar.

Example
This example displays a message in the status bar and later restores the former message.

Visual FoxPro

local lcMessage
lcMessage = SQApplication.ShowStatus('Retrieving desired records...')
* do some processing here
SQApplication.ShowStatus(lcMessage)

VBScript

function Main(Application)
MessageText = Application.ShowStatus("Retrieving desired records...")
' do some processing here
Application.ShowStatus(MessageText)
end function

JavaScript

function Main(Application) {
var MessageText ;
MessageText = Application.ShowStatus('Retrieving desired records...') ;
// do some processing here
Application.ShowStatus(MessageText)
}

See Also
Application Object | UpdateProgressBar