请问下adoquery查出的数据如何用字符串数组获取
具体的写法是什么?谢谢了。请写下代码我是新手呵呵
[解决办法]
var i:Integer; arr:array of string;begin with adoquery1 do beign close; sql.text:='select f from t'; open; if not IsEmpty then begin i:=0; setlength(arr,RecordCount); while not eof do beign arr[i]:=Fields[0].AsString; inc(i); next; end; end; end; //取值 for i:=low(arr) to high(arr) do Memo1.lines.add(arr[i]); arr:=nil;end;