L lbmjy Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-01 #1 如何把DataSet的纪录行的数据赋值到动态数组? DataSet的字段有多种数据类型。
Q qiu_peking Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-01 #2 var av_values:array of variant;i_index:integer; begin setlength(av_values,dataset1.fieldcount); for i_index := 0 to dataset1.FieldCount - 1 do av_values[i_index]:=dataset1.Fields[i_index].asvariant; end;
var av_values:array of variant;i_index:integer; begin setlength(av_values,dataset1.fieldcount); for i_index := 0 to dataset1.FieldCount - 1 do av_values[i_index]:=dataset1.Fields[i_index].asvariant; end;