2017年7月24日 星期一

delphi筆記


開發方向
  • 圖形GUI
  • 資料庫


宣告class
type
  TAccount = class
  private
    fCustomer: string;  // name of customer
    fNumber: Cardinal;  // account number
    fBalance: Currency; // current account balance
  end;
  TSavingsAccount = class(TAccount)
  private
    fInterestRate: Integer; // annual percentage rate, scaled by 1000
  end;
  TCheckingAccount = class(TAccount)
  private
    fReturnChecks: Boolean;
  end;
  TCertificateOfDeposit = class(TSavingsAccount)
  private
    fTerm: Cardinal;  // CD maturation term, in days
  end;
 
var
  CD1, CD2: TAccount;
begin
  CD1 := TCertificateOfDeposit.Create;
  CD2 := TCertificateOfDeposit.Create;
  ...

網址:oreilly.com/catalog/delphi/chapter/ch02.html


元件與物件不同之處
物件強調的是 “個體(Instance)" 的特徵及外在行為;而元件強調的是 “介面(Interface)" 的溝通
網址: http://oreilly.com/catalog/delphi/chapter/ch02.html


LinkedList Object
http://stackoverflow.com/questions/2680635/tstringlist-dynamic-array-or-linked-list-in-delphi

Delphi與Java差別
http://oreilly.com/catalog/delphi/chapter/ch02.html

VCL元件
http://docwiki.embarcadero.com/RADStudio/XE4/en/VCL_Overview

Delphi 可以搜尋資源:
 http://delphi.ktop.com.tw/board.php?cid=30&fid=1498&tid=95136
可以閱讀的書本
 Delphi in a Nutshell
網址:http://delphi.ktop.com.tw/board.php?cid=31&fid=77&tid=25443


Q1.查詢是否有LinkedList語法,因方便從資料庫找取資料到本地儲存,方便資料管理

Q2.如何撰寫Table Model,即時動態變DB value

Q3.撰寫ERP需要注意什麼

沒有留言:

張貼留言