package Structure;

import j4d.open.*;

class Examplet {

  /* getNumberUsers allows you to retrieve the number of connected users.
  */
  public String[] getTablesName(opProcess process, short tableNumber) throws opException{

    String[] mTablesName = new String[tableNumber];
    opTableArray mTableList = new opTableArray(tableNumber);

    try {
      process.GetTableNames(mTableList);
      for (short cpt = 0; cpt < mTableList.mSize; ++cpt)
                    mTablesName[cpt] = mTableList.mTableArray[cpt].mTableName;
    }
    catch (opException er){throw er;}

    return  mTablesName;
  }

}