【发布时间】:2015-08-20 22:28:28
【问题描述】:
我不知道如何处理字符串,我想用数据填充它,我已经成功地用列表视图做到了 这是我填充列表视图的代码..
var
LJSONArray : TJSONArray;
LItem: TListViewItem;
I: Integer;
begin
LJSONArray := TJSONArray.Create;
try
BackendStorage1.Storage.QueryObjects('ShoppingList', [], LJSONArray);
ListView1.ClearItems;
for I := 0 to LJSONArray.Count-1 do
begin
LItem := ListView1.Items.Add;
LItem.Text := (LJSonArray.Items[I].GetValue<string>('item'));
end;
finally
LJSONArray.Free;
end;
end;
【问题讨论】:
标签: delphi delphi-xe2 firemonkey tstringgrid