Stonefield Query calls the Application.ReportsExplorerReady script at application startup when the Reports Explorer is ready to display reports.

Parameters
A reference to the Stonefield Query Application object.

Return Value
Any value (Stonefield Query ignores the return value).

Example
Suppose you want to disable editing or creating reports if Stonefiield Query hasn't been activated. The following script in Application.ReportsExplorerReady does this.

Visual FoxPro

lparameters toApplication as SQApplication
if SQApplication.Users.GetLicenseCount() = 0
  SQApplication.CanEditReports = .F.
endif

VBScript

function Main(Application)
if SQApplication.Users.GetLicenseCount() = 0 then
  SQApplication.CanEditReports = False
end if
end function

JavaScript

function Main(Application) {
if SQApplication.Users.GetLicenseCount() = 0
  { SQApplication.CanEditReports = false ; }
}

See Also
Application.ReportsExplorerActivated | Scripts