Using Siebel Tools > Siebel Script Editors > Setting ST eScript Engine Options >

Setting the ST eScript Engine Warnings Preference


This preference is set under Engine Settings on the Scripting tab of the Development Tools Options window. Select the Enable Warnings checkbox to enable this setting.

The ST eScript Engine includes warnings which alert the user of potential problems that may be encountered at compile time. Some potential problems are:

  • References to methods and properties that are not predefined
  • References to undeclared identifiers
  • Variables that can potentially be used before being initialized
  • Double declarations of untyped variables
  • Calling a function that has an insufficient number of arguments

Errors such as those listed previously usually end up causing a run-time failure. Therefore, these compilation warnings enable you to fix errors earlier in your development cycle. The ST eScript Engine is downward compatible with the T eScript engine, so any scripts you may be running on that engine will run in the same way.

If you do not want these warnings displayed, deselect the Enable Warnings box.

The following is an example of a compilation warning message generated following a run-time failure:

function foo(a)

{

var oApp: Application;

oApp.myMethod ();

return;

}

foo ();

Semantic Warning around line 5:Variable oApp might not be initialized.

Semantic Warning around line 5:No such method myMethod

Semantic Warning around line 10:Calling function foo with insufficient number of arguments.

Unhandled Exception: Function expected

Using Siebel Tools Copyright © 2007, Oracle. All rights reserved.