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;

相关推荐
pcplayer5 天前
Delphi程序和大模型交互之二
人工智能·ai·大模型·agent·delphi
xyzhan14 天前
RAD Studio Amalthea Delphi 13.1 Beta深度解析:Delphi重磅更新,原生支持Windows ARM64EC
windows·delphi·rad studio·c++ builder·delphi 13
delphi 三层源码框架1 个月前
delphi发送SSL 465端口邮件
ssl·delphi·发送邮件·indy 465端口
tanqth4 个月前
Delphi跨平台开发中为Linux开发的优劣分析
跨平台·delphi·分析·linux开发
pcplayer4 个月前
Delphi 结构体序列化为二进制串
delphi
BillKu6 个月前
在 Delphi 5 中获取 Word 文档页数的方法
word·delphi
BillKu6 个月前
Delphi 5 中操作 Word 表格时禁用鼠标交互
word·delphi
看那山瞧那水6 个月前
DELPHI 利用OpenSSL实现加解密,证书(X.509)等功能
delphi·openssl
lincats6 个月前
一步一步学习使用FireMonkey动画(6) 用实例理解动画的运行状态
ide·delphi·livebindings·delphi 12.3·firemonkey
lincats6 个月前
一步一步学习使用FireMonkey动画(3) 使用Delphi的基本动画组件类
ide·delphi·delphi 12.3·firemonkey