A script-enabled browser is required for this page to function properly.

Defining Method Arguments as a Delimited String

Enhanced JavaBean support lets you pass multiple method arguments of different data types in a comma-delimited string. If you wish to pass arguments to a method as a single string, you must first define it in your code. Follow these rules to format the string and its arguments:

For example, to provide arguments to a JavaBean method which takes float, String, Boolean, double, String, Boolean arguments, you would create an argument string as follows:

  
Method_arguments := '2.5,"A string value",false,100,"Another String",true';

Each String value is enclosed in double quotes to distinguish it from the other types. If you need to include a double quote character within an actual string then escape the character with a backslash (\). For example, "String with \"Style\"". To include a backslash in the string escape that as well. For example, "A newline in Java is represented by the sequence \\n".

After you have defined the string, you can call one of the versions of Invoke that uses a comma delimited string.

Note: using a delimited string argument list in this way is only suitable for methods taking simple arguments. If a method has an argument which is an array of primitives or objects, such as the Java function plotchart:


public void plotChart( Float[] plotValues) 
  {
    ...
  } 

You cannot use a delimited argument string to call it. Instead, you must use an argument list. This is described in Defining Method Arguments as a List.


Accessing JavaBean Methods

Defining Method Arguments as a List

Invoking JavaBean Methods

Working with Overloaded Methods