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;

相关推荐
pcplayer12 天前
WEB 编程:使用富文本编辑器 Quill 配合 WebBroker 后端
前端·后端·delphi·web开发·webbroker
aroc_lo14 天前
DELPHI编译软件时带上当前IDE的版本号
ide·delphi
sensor_WU15 天前
【Delphi】Delphi 中的 LiveBindings 使用场景与概念
delphi·livebindings
c4fx16 天前
Delphi5利用DLL实现窗体的重用
开发语言·delphi·dll
c4fx1 个月前
Delphi5实现主要——明细型数据库应用
数据库·sqlserver·delphi
qq_335771181 个月前
mcjson_根据InPath路径,查询mcjson中的值 如果该路径不存在,则创建该路径并赐予‘‘空值
delphi
new_BCBER2 个月前
修改TMS IWAdvWebGrid日期格式
服务器·前端·javascript·delphi
winfredzhang2 个月前
动态创建 Delphi 按钮的完整指南:基于配置文件的 `TGridPanel` 实现
delphi·配置文件·动态·gridpanel
c4fx2 个月前
Delphi5+SqlServer实现会员数据增删改查
数据库·sqlserver·delphi
c4fx2 个月前
Delphi5实现身份证检验(DLL版)
开发语言·delphi·dll