package Record;

import j4d.open.*;

class Examplet {

  /* doCreateRecord create a record into the table 2. It fill the first field
  / with "John" and the second one with 21.
  */
  public void doCreateRecord(opProcess process) throws opException{

    int mTargetTable = 2;
    opTable mTable = new opTable(mTargetTable);

    try {
      opDataArray mData = new opDataArray(2);
      mData.mDataArray[0] = new opData(ALPHANUMERIC, "John");
      mData.mDataArray[1] = new opData(INTEGER, 21);
      process.CreateRecord(mTable, mData);
    }
    catch (opException er){throw er;}
  }

}