BBjStoredProcedureData::getParameter

Description

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

Syntax

Return Value

Method

object

getParameter(string p_paramName)

Parameters

Variable

Description

p_paramName

The parameter name.

Return Values

Returns the value of the parameter named p_paramName from the stored procedure.

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 input parameter from the application
NAME$ = sp!.getParameter("NAME")

See Also

BBjAPI

BBjStoredProcedureData

ObjectVariables

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