在我的表单中,我在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