在我的表單中,我在DataSource中使用了一個臨時表 - 與屬性TableType:InMemory。如何在臨時表中插入第二條記錄?
在我的形式我有一個簡單的代碼,就像這樣:
public TableTmpTable insertRecords(String _param_I, string _param_II)
{
TableTmpTable myInMemoryTable;
myInMemoryTable.clear();
myInMemoryTable.initValue();
myInMemoryTable.Field_I = _param_I;
myInMemoryTable.Field_II = _param_II;
myInMemoryTable.insert();
return myInMemoryTable;
}
我需要調用此方法不止一次。
但是,當我打電話的方法,我失去了我以前的記錄。 如何在不同的時間在InMemory表中插入更多記錄?
感謝您的建議!
Thanks @ FH-Inway。非常有用的建議。 我只在Form的classDeclaration my Table中聲明瞭InMemoryTable一次,並在所有進程中使用它。 – ulisses