论坛信息 |
最新加入:
l_hx
|
今日帖子:
5
|
在线用户:
1
|
|
|
|
导航: |
论坛 -> 数据库专区
斑竹:liumazi,waterstone |
|
作者: |
|
2023/3/14 12:50:28 |
标题: |
|
加入我的收藏 |
楼主: |
请教一下fdmemtable内存表如何去重
----------------------------------------------
- |
作者: |
|
2023/3/15 12:31:25 |
1楼: |
方法1: 每次Append/Insert前先Locate一下有没有已经存在的行. 方法2: fdmemtable有Index定义即索引,可以避免键重复. 方法3: 遍历去重.
----------------------------------------------
delphi|vue|golang yixsys|yixerp|mes|srm
|
作者: |
|
2023/3/16 1:57:41 |
2楼: |
{ TFDCopyDataSetOptions = set of (coStructure, coCalcFields, coIndexesReset, coIndexesCopy, coConstraintsReset, coConstraintsCopy, coAggregatesReset, coAggregatesCopy, coRestart, coAppend, coEdit, coDelete, coRefresh); } // ---------- type TForm1 = class(TForm) Button1: TButton; // FDMemTable1: TFDMemTable; FDMemTable1ID: TIntegerField; FDMemTable1NAMES: TStringField; DBGrid1: TDBGrid; DataSource1: TDataSource; // FDMemTable2: TFDMemTable; DataSource2: TDataSource; DBGrid2: TDBGrid; // procedure Button1Click(Sender: TObject); private ....
procedure TForm1.Button1Click(Sender: TObject); begin // Cloning... // FDMemTable2.CloneCursor(FDMemTable1); // // // just copying... FDMemTable2.CopyDataSet(FDMemTable1, [coStructure]); FDMemTable2.CopyDataSet(FDMemTable1 { , ... } ); end;
cloning...
此帖子包含附件:
 大小:174.9K |
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
|
作者: |
|
2023/3/16 2:08:56 |
3楼: |
just copying...
此帖子包含附件:
 大小:91.5K |
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
|
作者: |
|
2023/3/16 8:17:21 |
4楼: |
How is this GIF file generated
----------------------------------------------
▄︻┻┳═
|
作者: |
|
2023/3/16 9:15:40 |
5楼: |
hi @lyp8899
I'm using ShareX (open source on GitHub/Microsoft Store)
see my post here http://bbs.2ccc.com/topic.asp?topicid=673038
此帖子包含附件:
 大小:129.3K |
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
|
作者: |
|
2023/3/16 9:47:43 |
6楼: |
Thank you, I have downloaded and installed
----------------------------------------------
▄︻┻┳═
|
作者: |
|
2023/3/16 10:13:53 |
7楼: |
ok! have a fun!!!
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
|
|