Oracle Objects for OLE C++ Class Library
Release 9.2

Part Number A95896-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback

GetParameter Method

Applies To

OParameterCollection

Description

This method returns a specified OParameter object.

Usage

OParameter GetParameter(int index) const

OParameter GetParameter(const char *pname) const

Arguments
Description
index
An index from 0 to OParameterCollection.GetCount()-1.
pname
The name of the parameter, as stated when the parameter was created with Add.
Remarks

OParameter objects are obtained either by name or index from an OParameterCollection object. The OParameterCollection object is obtained from an ODatabase with the GetParameters method.

Return Value

An OParameter object which will be open on success, closed on failure.

Example

This example checks the status of the "deptno" parameter.

// we have an open ODatabase named odb

OParameterCollection params = odb.GetParameters();

OParameter pdeptno = params.GetParameter("deptno");

pstatus = pdeptno.GetStatus();


 
Oracle
Copyright © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback