RE: ordinal numbers used in static accessor



To be frank I'm not really experienced in OLEDB templates, but if it is a
static binding then shouldn't you provide the memory for all the parameters
and such? I would think that if the types are the same you could provide an
array and then use indexes.

"Roy" wrote:

> I have an OLE DB Static accessor derived from CAccessor, say cmd. I can use
> it to access the parameters and return values by field names, such as
> cmd.field1, cmd.parameter1. In its definition, there are ordinal numbers
> defined such as
> [ db_param(1, DBPARAMIO_OUTPUT) ] LONG m_RETURNVALUE;
> [ db_param(2, DBPARAMIO_INPUT) ] LONG m_Parameter1;
>
> [ db_column(1, status=m_dwField1Status, length=m_dwField1Length) ] LONG
> m_colField1;
> Is there a way to use the ordinal numbers instead of the field names to
> access the parameters or return values? What is the syntax to do that?
> Thanks
.