Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> obindps PROBLEM? it's important :-(
I What to insert an array of structures into a table using obindps function. Why only insert the first record?
This is the function Call
obindps(
&m_Cda,
(ub1) 1,
(text *)szPlaceHolder,
strlen(szPlaceHolder),
(ub1 *) &(ArrField1[0].nValue),
(sword) sizeof(int),
SQLT_INT, 0, &ArrIndicators[0], 0, 0,
(sb4) sizeof(ArrField1[0]),
(sb4) sizeof(sb2),
0, 0, 0,
(ub4 *) 0,
(text *) 0,
0, 0
where ArrField1 is
SRecord ArrField1[10];
ArrField1[0].nValue = 1;
ArrField1[1].nValue = 2;
...
nValue is the unique field of the structure that i what to insert.
and ArrIndicators is
sb2 ArrIndicators[10];
ArrIndicators[0] = 0;
ArrIndicators[1] = 0;
...
Where could be the mistake?.
regards.
Antonio. Received on Tue Aug 03 1999 - 05:52:32 CDT
![]() |
![]() |