Bungee Logic : Statement : Call Function ()

Page Status: Beta
Jump to: navigation, search

Back to Bungee Logic Statements

Contents

Description

Calls a user or system-defined function.

Syntax

[scope.]function(parameter [,parameter] );  [ catch(Error error){ var Error error; } ]

Where:

scope Is the scope of, which can be null, parent, or object.
function Is name of the function you want to call.
parameter

may be void if there are no parameters, or

may contain the values of the parameters, or

may be <not set>

Important Just as with calling operations using the SOAP protocol, functions in Bungee Connect have no explicit return value. Output or return values are set using [out] parameters exclusively. Out parameters cannot be used to read any values within the function; there currently is no concept of an [in/out] parameter in Bungee Connect.

Logic

 Calling a function with no parameters appears within the code like this.

myFunction(void);

 

 When you use the Parameters property to set the values of parameters being sent to a function it appears within the code like this.

myFunction(32,'No Answer',<not set>);

 

 You can use the Handle on Error property to invoke the implementation of a "catch" code block as shown here.

myFunction(32,'No Answer',<not set>);

catch(Error error)

{

      var Error error;

      // Add your code here

}

 

Error Handling

-None-

Intrinsics

Variables

  • error — If the Handle on Error property is selected this variable is included to contain the error code.

Properties

  • Function Path — Reference to the function to call.
  • Parameters — Allows you to pass argument values into the function
  • Scope — Alters the visible scope of the fuction
  • Handle on Error — Invokes the "catch" code block for you to implement error handling

Tab Title Bar

See Also

Bungee Logic : Schema : Function ()


Log in if you would like to rate this page.
    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.