BBjStoredProcedureData::setParameter

Description

In BBj 6.00 and higher, this method Sets the OUT value for the parameter named paramName that the stored procedure returns to the client.

Syntax

Return Value Method
void setParameter(String paramName, Object value)

Parameters

Parameter Description
paramName The parameter name.
value New parameter value.

Return Value

None.

Remarks

This method throws an !ERROR=17 (ARG_ERR) if paramName is not a valid parameter.

Example

rem 'A sample Stored Procedure program

rem 'Get a Stored Procedure object from the BBj File System
sp! = BBjAPI().getFileSystem().getStoredProcedureData()

rem 'Get the outut parameter from the application
NAME$ = sp!.setParameter("NAME","Wombat")

See Also

BBjAPI

Object Variables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.