void go()
{
TableId tableId;
DictTable dictTable;
DictField dictField;
FieldId fieldId;
int num;
int i;
;
delete_from JAY_TableElement;
tableId = tablename2id(TableName.text());
dictTable = new DictTable(tableId);
num = dictTable.fieldCnt();
for(i=0; i<num; i++)
{
fieldId = dictTable.fieldCnt2Id(i);
dictField = new DictField(tableId, fieldId);
if(dictField.isSystem() == false)
{
JAY_TableElement.clear();
JAY_TableElement.LineNo = i;
JAY_TableElement.Name = dictField.name();
JAY_TableElement.Label = dictField.label();
JAY_TableElement.Type = enum2str(dictField.basetype());
JAY_TableElement.StringSize = dictField.stringLen();
JAY_TableElement.EnumName = enumid2name(dictField.enumId());
JAY_TableElement.doInsert();
}
}
JAY_TableElement_ds.executeQuery();
}