Delphi DataSet转JSon (使用SuperObject)

Delphi中将TDataSet转换为JSon字符串。

复制代码
with ATM.LoadDataSet() do
  begin
  if IsEmpty then
    begin
      LogObj.WriteLog('未查询到该视图名称下该时间段内的上传数据,视图名称:'+ AViewname + '开始时间:'+ AStartdate + '结束时间:'+ AEnddate);
      exit
    end;
  while not Eof do

    begin
      for I := 0 to Fieldcount-1 do
      begin
        
        Item.S[Fields[I].FieldName]:=Fields[I].Asstring; //QuotedStr(Fields[I].FieldName)
      end;
      ja.Add(Item);
      next;
    end;
  end;
相关推荐
前端炒粉1 天前
35.LRU 缓存
开发语言·javascript·数据结构·算法·缓存·js
星释1 天前
Rust 练习册 75:ETL与数据转换
开发语言·rust·etl
happyjoey2171 天前
使用Qt自带的Maintenance Tool将Qt6.9升级为QT6.10
开发语言·qt
p***h6431 天前
JavaScript在Node.js中的异步编程
开发语言·javascript·node.js
散峰而望1 天前
C++数组(二)(算法竞赛)
开发语言·c++·算法·github
Porunarufu1 天前
Java·关于List
java·开发语言
子不语1801 天前
Python——函数
开发语言·python
ndjnddjxn1 天前
Rust学习
开发语言·学习·rust
月光技术杂谈1 天前
实战:C驱动框架嵌入Rust模块的互操作机制与完整流程
c语言·开发语言·rust·ffi·跨语言·bindgen·互操作
t198751281 天前
基于MATLAB的指纹识别系统完整实现
开发语言·matlab