Delphi 取消与设置CDS本地排序

取消与设置CDS本地排序

取消CDS本地排序.

cds.IndexDefs.Update;

if cds.IndexName<>'' then

begin

if cds.IndexDefs.IndexOf('index1')>=0 then cds.DeleteIndex('index1');

cds.IndexDefs.Clear;

cds.IndexName:='';

end;

设置CDS本地排序

cds.IndexDefs.Update;

cds..AddIndex('index1','sum_num',ixDescending);

cds.IndexName:='index2';

cds.First;

相关推荐
_lorzl_8 天前
Delphi 10.4.2 IDE Attach to process... 到宿主进程时死锁的原因与修复
ide·delphi
昆曲之源_娄江河畔1 个月前
DBGridEh Footer的使用
前端·数据库·delphi·dbgrideh
pcplayer1 个月前
非常好用的 Excel 读写控件
excel·delphi·office
月巴月巴白勺合鸟月半2 个月前
从 Delphi 到 FMX:Borland/Embarcadero 跨平台开发三十年兴衰史
跨平台·delphi
START_GAME2 个月前
Delphi 10.3安装与辅助工具uniGUI 配置指南
delphi·delphi10.3
专注VB编程开发20年2 个月前
delphi死嗑Pascal冷门编程语言,Borland不认可 “通用多语言 IDE”,认为 “专有语言才是护城河”
开发语言·ide·delphi
专注VB编程开发20年2 个月前
Delphi 的VCL控件库无法公开给其他编程语言调用
开发语言·delphi
qqww1552 个月前
DelphiSpeedUp 介绍
delphi
xyzhan3 个月前
使用Delphi开发混凝土生产车间自动化过程控制系统的仿真系统
运维·物联网·自动化·delphi·仿真·混凝土车间
pcplayer4 个月前
Delphi程序和大模型交互之二
人工智能·ai·大模型·agent·delphi