我在这里将 Tlist 放入字符串数组并不是什么大问题,但是我正在抛出 Array 我想列出所有要持续的值。
每次都列出最后一个值。我想要这样
价值1q
价值2q
价值3q
布拉布拉。所以数组中的 TList 我想列出所有元素。
对不起我的英语不好
public var
{ Public declarations }
Address : Array Of String;
AddressList: Tlist;
//Form Create
AddressList := Tlist.Create;
SetLength(Address, 3);
//Copy Listview Button
var
i : integer;
AItem: TlistItem;
begin
AddressList.Clear;
for i := 0 to SelectedListView.Items.Count - 1 do
begin
AItem := SelectedListView.Items.Item[i];
Address[0] := AItem.SubItems[0];
Address[1] := AItem.Caption;
Address[2] := AItem.SubItems[1];
AddressList.Add(Address);
end;
//Always being counted towards the last value
for i := 0 to AddressList.Count -1 do
MultiUser.Text := TArrayStr(AddressList[i])[1]);