mormot 数据集和JSON互相转换
mormot 数据集和JSON互相转换
uses
SynVirtualDataSet, mORMotMidasVCL, SynCommons;
procedure TForm1.Button1Click(Sender: TObject);
var
json: RawUTF8;
begin
json := DataSetToJSON(ADOQuery1);
DataSource1.DataSet := JSONToClientDataSet(Self, json);
end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/8039748.html