0 Replies Latest reply on Jul 30, 2002 12:58 PM by 30066

    Set Parameter Array of OTYPE_ROWID

    30066

      I have tried to adds a parameter array to a database as OTYPE_ROWID.
      the sample codes are as follow:
      {
      //Use oo4o to connect DB
      CString strRowIDArrayName = "U1";
      long ParamRecordCount = 5;
      ODatabase db;
      db.open("DSN","UID","PWD");
      OParameterCollection ParamColl = db.GetParameters();
      ParamArray1=ParamColl.AddTable(strRowIDArrayName,OPARAMETER_INVAR,OTYPE_ROWID,ParamRecordCount);
      BOOL bln = ParamArray1.IsOpen();
      db.close();
      }
      Question:Why the bln is 0
      and failure in use the ParamArray1 to execute SQL statement .

      Please help me.

      my email address: morigen_2001@yahoo.co.jp
      thank a lot