procedure FillCDS(T, F: TDataSet;KeyFields: string;ikeyCount : integer);
var
LocateVariant: Variant;
j: integer;
begin
LocateVariant := VarArrayCreate([0, iKeyCount - 1], varVariant);
F.First;
while not F.Eof do
begin
with T do
begin
for j := 0 to iKeyCount - 1 do
LocateVariant[j] := F.Fields[j].Value;
最后一行有什么问题吗?x3提示[错误]: Missing operator or semicolon