dictTable

static void Job222(Args _args)
{
DictRelation dictRelation;
DictField externDictField;
ItemCategoryTable ItemCategoryTable;
DictField dictField;
Counter c;
DictTable dictTable;
int i,k,n,h;
;
dictTable = new DictTable(ItemCategoryTable.TableId);
n =dictTable.fieldCnt();
print "Number of fields in table: ", n;
for(i=1; i<= n ; i++)
{
k=dictTable.fieldCnt2Id(i);
if(dictTable.fieldName(k) == "Description")
{
print "The ", dictTable.fieldName(k), " field with Id=",k, " contains '", ItemCategoryTable.(k), "'";

select ItemCategoryTable where ItemCategoryTable.(k) == "321";
print ItemCategoryTable.Category;
ItemCategoryTable.(k) = "6666";
ItemCategoryTable.insert();
}
}

pause;

}

原文地址:https://www.cnblogs.com/KobeZhang/p/4858463.html