Give Each Argument a Name

If you use a function that includes an argument, then you can provide a value for this argument. To do this, you list it in the order where it occurs in the format for the function. For example, assume you define the following function:

myfunction(id, action, value)

In this example, the myfunction function requires the following arguments:

  • id

  • action

  • value

If you call this function, then you specify these arguments in the order that they occur. If a function includes multiple arguments, then it is recommended that you name each argument. This technique helps to make sure that Siebel CRM assigns each value that you specify to the correct argument.

If you give each argument a name, then you are not required to remember the order where the arguments occur. For example, the following format is correct even though the order varies from the order that the format specifies:

myfunction action:="get", value:=0, id:=1

Consider the following code:

Sub mysub(aa, bb, optional cc, optional dd)

The following calls to this code are equivalent to each other:

call mysub(1, 2, , 4)
mysub aa :=  1, bb :=  2, dd := 4
call mysub(aa :=  1, dd:= 4, bb :=  2)
mysub 1, 2, dd:= 4