BBjStoredProcedureData::setParameter

Description

In BBj 6.0 and higher, this method sets the OUT value of the specified parameter.

Syntax

Return Value

Method

void

setParameter(string p_paramName, Object p_value)

Parameters

Variable

Description

p_paramName

The parameter name.

p_value

New parameter value.

Return Values

Sets the OUT value for the parameter named p_paramName that the stored procedure returns to the client.

Remarks

This method throws an !ERROR=17 (ARG_ERR) if p_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

BBjStoredProcedureData

ObjectVariables

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