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;

相关推荐
tanqth7 天前
使用Delphi 和 CrossVcl 开发基于VCL的 macOS 和 Linux 应用程序简介
linux·delphi·crossvcl·vcl开发的linux
我不是代码教父1 个月前
[原创](现代Delphi 12指南): 设置、运行和调试你的第一个macOS应用程序.
macos·delphi
和码说3 个月前
编程考古-忘掉它,Delphi 8 for the Microsoft .NET Framework
delphi·编程考古
ljklxlj3 个月前
rdian是一个结构体,pdian=^Rdian,list泛型做什么用?
delphi
ljklxlj4 个月前
我的杂记一
delphi
月巴月巴白勺合鸟月半5 个月前
以前很常见的一种HTTP操作方式
网络·c++·网络协议·http·delphi
月巴月巴白勺合鸟月半5 个月前
一个小工具
windows·delphi
martian61255 个月前
Delphi Android WebBrowser 加载自定义scheme报错net::ERR_UNKNOWN_URL_SCHEME
delphi
_1_76 个月前
unigui 登陆界面
delphi·unigui
sensor_WU6 个月前
【delphi】常用语言特性:接口、匿名方法、泛型
delphi·delphi 语言特性·delphi 匿名方法·delphi 接口