A
along1976
Unregistered / Unconfirmed
GUEST, unregistred user!
我用adoqeury查询得到的结果想一次性导入combobox中,查得的资料说用stream,
但我没用过,哪位大侠给点例子。(下面的程序无法得到结果)
bufointer;
GetMem(buf, size);
try
if Fields[0].GetData(buf) then
begin
stream.SetSize(size);
stream.ReadBuffer(Pchar(buf)^,sizeof(buf));
ComboBoxCity.Items.LoadFromStream(stream);
end;
finally
Freemem(buf,size);
但我没用过,哪位大侠给点例子。(下面的程序无法得到结果)
bufointer;
GetMem(buf, size);
try
if Fields[0].GetData(buf) then
begin
stream.SetSize(size);
stream.ReadBuffer(Pchar(buf)^,sizeof(buf));
ComboBoxCity.Items.LoadFromStream(stream);
end;
finally
Freemem(buf,size);