#1 2017-09-20 12:06:34

bigheart
Member
Registered: 2014-08-01
Posts: 45

How to unserialize from tsqlrecord.getJsonValues to TsqlRecord

Hi all,

I want to know how to retrieve the tsqlrecord fields data from json.

Json is made from tsqlrecord.getJsonValues.

TMyRec = packed record
  fdata: RawByteSting;
end;

TMyRecs = array of TMyRec;

TMySQL = class(TSQLRecord)
private
  ffiles: TMyRecs;
published
  files: TMyRecs read ffiles wirte ffiles;
end;
..........
var MySQL, YourSQL: TMYSQL;
     Lutf8: RawUtf8;
...
Lutf8 := MySQL.GetJSONValues(treu, true, soSelect);

**) Now how to fill the data to YourSQL from Lutf8?

Offline

Board footer

Powered by FluxBB