docs: public int setGridFile(Record record, String keyAreaName)
      {
          KeyArea recordKeyArea = record.getKeyArea(keyAreaName);
          KeyArea newKeyArea = this.makeIndex(recordKeyArea.getUniqueKeyCode(), recordKeyArea.getKeyName());
          for (int iKeyField = 0; iKeyField < recordKeyArea.getKeyFields(); iKeyField++)
          {
              BaseField field = recordKeyArea.getField(iKeyField);
              boolean bOrder = recordKeyArea.getKeyOrder(iKeyField);
              newKeyArea.addKeyField(field, bOrder);
          }
          return this.getKeyAreaCount() - 1;  // Index of new key area
      }