全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1635
推到 Plurk!
推到 Facebook!

請問AppendData(ClientDataSet1.Data,True)的第2個參數???

答題得分者是:GrandRURU
chjunsen
一般會員


發表:38
回覆:15
積分:10
註冊:2006-10-25

發送簡訊給我
#1 引用回覆 回覆 發表時間:2015-04-02 11:04:06 IP:202.39.xxx.xxx 訂閱
各位大大你好
在網路上很多文章,關於ClientDataSet2.AppendData(ClientDataSet1.Data,True);
的第二個參數,有時候有人使用FALSE,有人使用TRUE,
經查詢都無法找到解答,想請問各位大大請問第二參數的用意為何??
謝謝



GrandRURU
站務副站長


發表:240
回覆:1680
積分:1874
註冊:2005-06-21

發送簡訊給我
#2 引用回覆 回覆 發表時間:2015-04-02 11:17:24 IP:59.120.xxx.xxx 訂閱
Help說明:
Adds a newly fetched packet of records to those already stored in the client dataset.
Use AppendData to add a newly fetched packet of records from a provider to the client dataset. Data indicates the packet of records to add. HitEOF indicates whether the provider encountered the end of the dataset when it fetched the records from the database server.
Most applications call GetNextPacket instead to fetch a packet of records and automatically add them to those already available. Use AppendData when fetching data packets directly from the provider rather than letting the client dataset fetch data.
所以表示如果遇到Source到達最末筆時,是否要從 TDataSetProvider 再帶回資料。
如果PacketRecords為-1,HitEOF是True或False都沒有關係。
以上
===================引 用 chjunsen 文 章===================

各位大大你好

在網路上很多文章,關於ClientDataSet2.AppendData(ClientDataSet1.Data,True);
的第二個參數,有時候有人使用FALSE,有人使用TRUE,
經查詢都無法找到解答,想請問各位大大請問第二參數的用意為何??
謝謝



chjunsen
一般會員


發表:38
回覆:15
積分:10
註冊:2006-10-25

發送簡訊給我
#3 引用回覆 回覆 發表時間:2015-04-03 10:33:03 IP:202.39.xxx.xxx 訂閱
大大謝謝
===================引 用 GrandRURU 文 章===================

Help說明:


Adds a newly fetched packet of records to those already stored in the client dataset.
Use AppendData to add a newly fetched packet of records from a provider to the client dataset. Data indicates the packet of records to add. HitEOF indicates whether the provider encountered the end of the dataset when it fetched the records from the database server.
Most applications call GetNextPacket instead to fetch a packet of records and automatically add them to those already available. Use AppendData when fetching data packets directly from the provider rather than letting the client dataset fetch data.
所以表示如果遇到Source到達最末筆時,是否要從 TDataSetProvider 再帶回資料。
如果PacketRecords為-1,HitEOF是True或False都沒有關係。
以上
===================引 用 chjunsen 文 章===================

各位大大你好

在網路上很多文章,關於ClientDataSet2.AppendData(ClientDataSet1.Data,True);
的第二個參數,有時候有人使用FALSE,有人使用TRUE,
經查詢都無法找到解答,想請問各位大大請問第二參數的用意為何??
謝謝



系統時間:2024-04-25 16:28:42
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!