static void NameTableWithLabel(Args _args)
{
tableId tableId;
TmpAotLabelImport TmpAotLabelImport;
int tablecounter;
Common tableCommon;
DictTable DictTable;
Dictionary dict = new Dictionary();
Str ListOfTable;
TextBuffer Buffer = new TextBuffer();
delete_from TmpAotLabelImport;
for (tablecounter=1; tablecounter<=dict.tableCnt(); tablecounter++)
{
tableId = dict.tableCnt2Id(tablecounter);
TmpAotLabelImport.clear();
TmpAotLabelImport.LabelId = int2str(tableId);
TmpAotLabelImport.TreeNodePath = dict.tableName(tableId);
TmpAotLabelImport.insert();
}
while select TmpAotLabelImport order by TreeNodePath
{
DictTable = new DictTable(str2int(TmpAotLabelImport.LabelId));
//tableCommon = DictTable.makeRecord();
ListOfTable += TmpAotLabelImport.TreeNodePath + " ( "+DictTable.label()+" ) "+num2char(13)+num2char(10);
}
//YOU MUST PASTE TO SEE RESULT
Buffer.setText(ListOfTable);
Buffer.toClipboard();
Box::info("finished");
delete_from TmpAotLabelImport;
}
Aucun commentaire:
Enregistrer un commentaire