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;
相关推荐
专注VB编程开发20年1 小时前
javascript的类,ES6模块写法在VSCODE中智能提示
开发语言·javascript·vscode
黄雪超8 小时前
JVM——函数式语法糖:如何使用Function、Stream来编写函数式程序?
java·开发语言·jvm
测试杂货铺8 小时前
Jmeter(六):json断言元件,jmeter参数化实现
jmeter·json
ThetaarSofVenice8 小时前
对象的finalization机制Test
java·开发语言·jvm
思则变8 小时前
[Pytest] [Part 2]增加 log功能
开发语言·python·pytest
lijingguang9 小时前
在C#中根据URL下载文件并保存到本地,可以使用以下方法(推荐使用现代异步方式)
开发语言·c#
¥-oriented9 小时前
【C#中路径相关的概念】
开发语言·c#
CoderCodingNo9 小时前
【GESP】C++四级考试大纲知识点梳理, (7) 排序算法基本概念
开发语言·c++·排序算法
恋猫de小郭10 小时前
Meta 宣布加入 Kotlin 基金会,将为 Kotlin 和 Android 生态提供全新支持
android·开发语言·ios·kotlin
JosieBook10 小时前
【Java编程动手学】使用IDEA创建第一个HelloJava程序
java·开发语言·intellij-idea