I ifillbad Unregistered / Unconfirmed GUEST, unregistred user! 2008-01-15 #1 delphi中如何将 某个字段的字段值 写入 数组?比如 name字段中有 6个字段值 如何将这6个值写入数组?
C Corn3 Unregistered / Unconfirmed GUEST, unregistred user! 2008-01-15 #2 var Array1: array of string; i: Integer; begin with DataSet do begin SetLength(Array1, RecordCount); for i := 0 to RecordCount - 1 do begin Array1 := FieldByName('Field1').AsString; Next; end; end; end;
var Array1: array of string; i: Integer; begin with DataSet do begin SetLength(Array1, RecordCount); for i := 0 to RecordCount - 1 do begin Array1 := FieldByName('Field1').AsString; Next; end; end; end;
X xibaixin Unregistered / Unconfirmed GUEST, unregistred user! 2008-01-15 #3 如果是将一段字符分开存在数组中,你要先量长度,分开放如旧好了