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

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

JavaScript

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

C#

string message = SQApplication.ShowStatus("Retrieving desired records...");
// do some processing here
SQApplication.ShowStatus(message);

VB.NET

Dim message as String = SQApplication.ShowStatus("Retrieving desired records...")
' do some processing here
SQApplication.ShowStatus(message)

See also

Application Object | UpdateProgressBar

© Stonefield Software Inc., 2024 • Updated: 06/06/16
Comment or report problem with topic