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;
相关推荐
wangjinjin18012 分钟前
Python Excel 文件处理:openpyxl 与 pandas 库完全指南
开发语言·python
愚润求学12 分钟前
【C++】类型转换
开发语言·c++
斯奕sky_small-BAD25 分钟前
C++ if语句完全指南:从基础到工程实践
java·开发语言·php
Humbunklung34 分钟前
Rust Floem UI 框架使用简介
开发语言·ui·rust
网安INF1 小时前
RSA加密算法:非对称密码学的基石
java·开发语言·密码学
明月*清风1 小时前
c++ —— 内存管理
开发语言·c++
蔡蓝1 小时前
设计模式-观察着模式
java·开发语言·设计模式
西北大程序猿2 小时前
单例模式与锁(死锁)
linux·开发语言·c++·单例模式
你不是我我2 小时前
【Java开发日记】说一说 SpringBoot 中 CommandLineRunner
java·开发语言·spring boot
心扬2 小时前
python网络编程
开发语言·网络·python·tcp/ip