Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel VB Language Reference > Using Siebel VB > Guidelines for Using Siebel VB > Give Each Argument a NameIf 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: In this example, the myfunction function requires the following arguments: 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:
Sub mysub(aa, bb, optional cc, optional dd) The following calls to this code are equivalent to each other: call mysub(1, 2, , 4) Format That You Can Use to Name an ArgumentTo name an argument, you use the following format:
Naming an Argument With More Complex FormatsWith some formats, you must use a comma as a placeholder for each optional argument that you do not specify. If you name the arguments, then you can specify only the arguments that your code must use and their values. For example, consider the following code:
In this situation, you can use one of the following formats:
You cannot omit a required argument. Where You Can Name an Argument |
![]() ![]() |
Siebel VB Language Reference | Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |