Siebel VB Language Reference > About Siebel Visual Basic > Overview of Siebel Visual Basic >

About Functions and Methods


A Siebel VB function is an independent section of code that does the following:

  1. Receives information
  2. Performs some action on this information
  3. Returns a value to the item that called it

It begins with the following statement:

Function functionname

It ends with the following statement:

End Function

You can use the same format that you use with a variable to name a custom function. You can use any valid variable name as a function name. It is recommended that you use a name that describes the work that the function performs.

You can write code that calls a function repeatedly from various objects or script. It is similar to a subroutine. To call a function, you must know what information the function requires as input and what information it provides as output. This book describes the predefined functions that come with Siebel VB. You can use these functions any time you use the Siebel VB interpreter.

You can use a function anywhere you can use a variable. To use a function, you do the following:

  • To declare it, you can use the function keyword.
  • To determine the data that Siebel VB must pass to the function, you include the function operator. To include this operator, you can use a pair of parentheses immediately after the function name. For example, TheApplication.RaiseErrorText().

A Siebel VB method is a function that is part of an object or class. It can include a predefined procedure that you can use to call a function.

A Siebel VB statement is a complete instruction.

For more information, see Siebel eScript Language Reference.

Siebel VB Language Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.