论坛


2009年10月23日 星期五

JSON 之 SuperObject(7): 可以省略的双引号

万一| 万一的 Delphi 博客 |22:17:00

在 JSON 中, 字符串应该在双引号中; 从上个例子才发现: 原来这个双引号可以省略, 有空格都行当然只是在程序代码中可以省略, 对象会自动识别添加的.即如此, 下面写法都可以:uses SuperObject; procedure TForm1.Button1Click(Sender: TObject); var jo1,jo2,jo3: I...

JSON 之 SuperObject(6): 方法

万一| 万一的 Delphi 博客 |21:37:00

SuperObject 的 JSON 对象中还可以包含 "方法", 这太有意思了; 其方法的格式是:procedure Method(const This, Params: ISuperObject; var Result: ISuperObject); //另外, 这是其数据类型的枚举: TSuperType = (stNull, stBoolean, stDouble, stInt, stObject, stAr...

JSON 之 SuperObject(5): Format 与转义字符

万一| 万一的 Delphi 博客 |18:10:00

unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton; procedure Button1Click(Sender: TObject); ...

JSON 之 SuperObject(4): 增、删、改

万一| 万一的 Delphi 博客 |17:35:00

unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; procedure Button1Cli...

JSON 程式設計 – DataSnap的回叫機制

李维| IT : 是工作還是嗜好? |16:52:15

DataSnap 2010加入了回叫機制,當伺服端方法在執行的過程中可以回叫用戶端提供的方法以通知用戶端有關伺服端方法執行的狀態。DataSnap的回叫機制非常適合使用在需要較長時間執行的伺服端方法,例如如果伺服端方法需要執行長時間的查詢時就很適合使用,或是當程式啟動...

JSON 之 SuperObject(3): 访问

万一| 万一的 Delphi 博客 |15:11:00

测试数据提前加入 Memo1 中:{ "name": "张三", /* 注释 */ "age": 33, "sex": true, "weight": 123.456, "tel": ["86-1111111", "86-2222222"], "addresses":{"address":"A省B市", "pc":"100001"}, "children": [ { "name": "张继", "...

Deadline extended to submit Unicode migration stories for Delphi and C++Builder

CodeGear| CodeGear-CDN Delphi |08:52:00

Programmatically Select a File in Windows Explorer from Delphi code

About.com| About.com Delphi Programming |02:00:56

in Delphi TIPS::If you are working with files in your Delphi application, you might need to launch the Windows Explorer window and programmatically select a particular file in a given directory.In order to select a file in Windows Explorer you nee...