DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: forget66
今日帖子: 62
在线用户: 12
导航: 论坛 -> 数据库专区 斑竹:liumazi,waterstone  
作者:
男 sunshinedelphi (sunshine) ★☆☆☆☆ -
盒子活跃会员
2023/3/14 12:50:28
标题:
fdmemtable 去重 浏览:996
加入我的收藏
楼主: 请教一下fdmemtable内存表如何去重
----------------------------------------------
-
作者:
男 doersoft (hnysoft.com) ★☆☆☆☆ -
普通会员
2023/3/15 12:31:25
1楼: 方法1: 每次Append/Insert前先Locate一下有没有已经存在的行.
方法2: fdmemtable有Index定义即索引,可以避免键重复.
方法3: 遍历去重.
----------------------------------------------
delphi|vue|golang hnysoft|hnyerp+mes+srm
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
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...
此帖子包含附件:
GIF 图像
大小:174.9K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/3/16 2:08:56
3楼: just copying...
此帖子包含附件:
GIF 图像
大小:91.5K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 lyp8899 (lyp8899) ★☆☆☆☆ -
盒子活跃会员
2023/3/16 8:17:21
4楼: How is this GIF file generated
----------------------------------------------
▄︻┻┳═
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
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
此帖子包含附件:
PNG 图像
大小:129.3K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 lyp8899 (lyp8899) ★☆☆☆☆ -
盒子活跃会员
2023/3/16 9:47:43
6楼: Thank you, I have downloaded and installed
----------------------------------------------
▄︻┻┳═
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
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
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行164.0625毫秒 RSS