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;

相关推荐
专注VB编程开发20年2 天前
delphi死嗑Pascal冷门编程语言,Borland不认可 “通用多语言 IDE”,认为 “专有语言才是护城河”
开发语言·ide·delphi
专注VB编程开发20年2 天前
Delphi 的VCL控件库无法公开给其他编程语言调用
开发语言·delphi
qqww1559 天前
DelphiSpeedUp 介绍
delphi
xyzhan15 天前
使用Delphi开发混凝土生产车间自动化过程控制系统的仿真系统
运维·物联网·自动化·delphi·仿真·混凝土车间
pcplayer2 个月前
Delphi程序和大模型交互之二
人工智能·ai·大模型·agent·delphi
xyzhan2 个月前
RAD Studio Amalthea Delphi 13.1 Beta深度解析:Delphi重磅更新,原生支持Windows ARM64EC
windows·delphi·rad studio·c++ builder·delphi 13
delphi 三层源码框架2 个月前
delphi发送SSL 465端口邮件
ssl·delphi·发送邮件·indy 465端口
tanqth5 个月前
Delphi跨平台开发中为Linux开发的优劣分析
跨平台·delphi·分析·linux开发
pcplayer6 个月前
Delphi 结构体序列化为二进制串
delphi
BillKu7 个月前
在 Delphi 5 中获取 Word 文档页数的方法
word·delphi