H
hsgrass
Unregistered / Unconfirmed
GUEST, unregistred user!
ado设置好主从表后,DELPHI自动设置IndexFieldNames,<br>如果我在运行时候修改,则主从关系会不正确,<br>例如:<br>M表与D表使用areacode作为主从关系,如果设置从表的INDEXDIELDNAMES为<br>custcode则从表与主表生成的<br>FieldExpr := GetFilterStr(LinkField, TField(MasterDataLink.Fields).Value);<br>为新的字段的值,<br>即masterfilds与INDEXDIELDNAMES必需相同,才能有主从关系,但DELphi的說明,是它不是必需的,只是提高性能。。。<br>Lists the columns to use for a persistent sort of the recordset.<br>Delphi syntax:<br>property IndexFieldNames: String;<br>IndexFieldNames may be used to set the sort order for the detail table in a master-detail link, increasing the performance of the link. However, use of IndexFieldNames is not required for master-detail links.<br><br>有没有解决办法?