那个地址我解决了,但现在有个问题,我想把找出的值存到数组中,可怎么就存第一个值?很奇怪!我的语句是这样的
type
a = Array of String;
var
b: a;
with ADOQuery_Data do
begin
Close;
SQL.Clear;
SQL.Text := 'SELECT CM_Name, SUM(CM_Number), SUM(CM_SUM) FROM Commodity_out
WHERE GROUP BY CM_Name';
Open;
SetLength(b, Recordcount);
for I := 0 to RecordCount do
begin
a := FieldByName('CM_Name').AsString;
end;
end;