Y
yanzhong
Unregistered / Unconfirmed
GUEST, unregistred user!
ClientDataSet1里面已有数据,在编辑框输入拼音简码回车执行下面语句,并且结果集再按字段frequency降序排列,但执行时总显示index 'px' not found! 不知何故,请大家帮忙,谢谢了 Data.ClientDataSet1.Close; Data.ClientDataSet1.Filter :='py1 like '''+UpperCase(tj)+'%'' '; Data.ClientDataSet1.Filtered := True; Data.ClientDataSet1.Open; //在此以上运行都正确并且有数据 OldIndex:=Data.ClientDataSet1.IndexName; if OldIndex<>'' then begin Data.ClientDataSet1.IndexName:=''; Data.ClientDataSet1.DeleteIndex(OldIndex); end; Data.ClientDataSet1.AddIndex('px','frequency',[ixDescending]); Data.ClientDataSet1.IndexName:='px';