Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> obindps PROBLEM? it's important :-(

obindps PROBLEM? it's important :-(

From: Antonio Pascual <apa_at_jerez.micro.lucent.com>
Date: Tue, 3 Aug 1999 12:52:32 +0200
Message-ID: <7o6hk8$dm@nntpa.cb.lucent.com>

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US