package Set;

import j4d.open.*;

class Examplet {

  /* doAddToset add a record to the set targetSet
  */
  public void doAddToset(opProcess process, opSet targetSet, int targetTable,
                         int targetField) throws opException{

    try {
      opTable mTable = new opTable(targetTable, targetField);
      process.GotoRecord(mTable);
      process.AddToSet(targetSet, mTable);
      process.UseSet(targetSet);
    }
    catch (opException er){throw er;}
  }

}