2
是否有可能在運行時將表設置爲臨時表?臨時表在運行時
是否有可能在運行時將表設置爲臨時表?臨時表在運行時
使用setTmp
方法將記錄緩衝區標記爲臨時記錄。如果您想避免insert
方法中所做的任何其他更新,請記得調用doInsert
方法而不是insert
方法。
要有第二個記錄緩衝區,請使用setTmpData
方法參考相同的臨時表。
這個測試工作說明了如何使用:insert`只`insert_recordset`上`
static void TmpTest(Args _args)
{
CustTable custTable, custTable2;
;
custTable.setTmp();
custTable.AccountNum = "123Tmp";
custTable.Name = "Temporary?";
custTable.doInsert();
custTable2.setTmp();
custTable2.setTmpData(custTable);
select custTable2 where custTable2.AccountNum == "123Tmp";
info(custTable2.Name);
}
使用'skipDataMethods'方法不起作用。 –