W
wpw72
Unregistered / Unconfirmed
GUEST, unregistred user!
cdsTemp := TClientDataset.Create(Self);<br> with cdsTemp do // 添加字段定义<br> begin<br> with FieldDefs.AddFieldDef do<br> begin<br> DataType := ftSmallint;<br> Name := 'SN';<br> end;<br> with FieldDefs.AddFieldDef do<br> begin<br> DataType := ftString;<br> Size := 7;<br> Name := 'SerialNumber';<br> end;<br> end;<br> cdsTemp.CreateDataset;<br>接下来如何创建查找字段?