FBean provides an FBean.ArgList
data type which you can use to
define an argument list. This list can be populated and then passed to the Invoke
methods. The syntax of the ArgList
commands follows:
Creating an argument list:
FBEAN.CREATE_ARGLIST return FBEAN.ArgList;
Clearing an argument list:
FBEAN.CLEAR_ARGLIST( ARGUMENT_LIST IN OUT FBEAN.ARGLIST);
Adding values to an argument list:
FBEAN.ADD_ARG( ARGUMENT_LIST IN OUT FBEAN.ARGLIST, ARGUMENT_VALUE IN VARCHAR2);
FBEAN.ADD_ARG( ARGUMENT_LIST IN OUT FBEAN.ARGLIST, ARGUMENT_VALUE IN NUMBER);
FBEAN.ADD_ARG( ARGUMENT_LIST IN OUT FBEAN.ARGLIST, ARGUMENT_VALUE IN BOOLEAN);
To create and populate an argument list:
FBean.ArgList
.FBean.Create_Arglist
. FBean.Add_Arg
to add each argument to the list in the correct
order. FBean.Add_Arg
is overloaded to handle Strings, numbers
and Boolean types. In each case, you pass the argument list that you created
as the first parameter to FBean.Add_Arg
.FBean.Clear_Arglist
.To define the arguments for a Java method which takes: float, String, Boolean, and double arguments, you would create an argument string as follows:
declare hArgList FBean.ArgList; begin hArgList := FBean.Create_ArgList; FBean.Add_Arg(hArgList, 2.5); FBean.Add_Arg(hArgList, 'A string value'); FBean.Add_Arg(hArgList, false); FBean.Add_Arg(hArgList, 100); FBean.Add_Arg(hArgList, 'Another String'); FBean.Add_Arg(hArgList, true); ....
You can now use the Arglist
in a call to a method. For an example,
see Calling Arguments as an
Argument List
Defining Method Arguments as a Delimited String
Working with Overloaded Methods