Siebel Object Interfaces Reference > Using Siebel Visual Basic and Siebel eScript > Configuring Error Handling >

Calling More Than One Object Interface Method In a Script


You can call more than one object interface method in a script.

To call more than one object interface method in a script

  • Use one of the following statements:
    • Select statement in Siebel VB
    • Switch statement in Siebel eScript.

Example of Calling More Than One Object Interface Method in Siebel VB

The following example uses the Select statement in Siebel VB:

Dim iReturn As Integer
iReturn = ContinueOperation
Select Case methodName
   Case "PushOpportunity"
      your custom code
      iReturn = CancelOperation
   Case "Stage3"
      your custom code
      iReturn = CancelOperation
End Select
object_PreInvokeMethod = iReturn

Example of Calling More Than One Object Interface Method in Siebel eScript

The following example is in Siebel eScript:

var iReturn;
switch (methodName)
{
   case "PushOpportunity":
      //your custom code
      iReturn = CancelOperation;
      break;
   case "Stage3":
      //your custom code
      iReturn = CancelOperation;
      break;

   default:
      iReturn = ContinueOperation;
}
return (iReturn);

Siebel Object Interfaces Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.