The Tools_IsScriptRemote() function returns whether the current script is being processed remotely on a Process Server.
Tools_IsScriptRemote()
• None
A boolean value indicating whether the current script is being processed remotely by a Process Server. True indicates the script is being processed remotely on a Process Server; false indicates the script is being processed locally.
When procedures are run on a Process Server, they should not display the Report Destination window. This function is used in procedures that can generate reports to ascertain whether the procedure is being processed on a Process Server. If it is, the parameters of the run report and run report with name statements should be set to not display the Report Destination window.