type BMRecord = record BMBM : string; //编码 end; pBMRecord = ^BMRecord;var BMRecord: pBMRecord; begin TreeList := TList.Create; with Adoquery1 do begin TreeList.Clear; First; while not Eof do begin New(BMRecord); BMRecord.BMBM := FieldByName('BMBH').AsString; TreeList.Add(BMRecord); Next; end; end; end;
BMRecord = record
BMBM : string; //编码
end;
pBMRecord = ^BMRecord;var
BMRecord: pBMRecord;
begin
TreeList := TList.Create;
with Adoquery1 do
begin
TreeList.Clear;
First;
while not Eof do
begin
New(BMRecord);
BMRecord.BMBM := FieldByName('BMBH').AsString;
TreeList.Add(BMRecord);
Next;
end;
end;
end;
在TWinForm中做这个怎么做?