freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

第十五章數(shù)據(jù)訪問部件的應(yīng)用及編程一(編輯修改稿)

2024-10-11 15:31 本頁面
 

【文章內(nèi)容簡介】 re there are aliases defined } := crDefault。 if 1 then MessageDlg( 39。There are no database aliases currently defined. You 39。 + 39。need at least one alias to use this demonstration.39。, mtError, [mbOK], 0 )。 end。 procedure (Sender: TObject)。 var strValue: string。 { Holds the alias selected by the user } bIsLocal: Boolean。 { Indicates whether or not an alias is local } slParams: TStringList。 { Holds the parameters of the selected alias } iCounter: Integer。 { An integer counter variable for loops} begin { Determine the alias name selected by the user } with ListBox1 do strValue := [ItemIndex]。 { Get the names of the tables in the alias and put them in the appropriate list box, making sure the user39。s choices are reflected in the list. } 。 (strValue, { alias to enumerate } 39。39。, { pattern to match } 數(shù)據(jù)集中的數(shù)據(jù)維護(hù) 數(shù)據(jù)集中的數(shù)據(jù)維護(hù)主要包括數(shù)據(jù)記錄的修改,插入和刪除。 Delphi 為數(shù)據(jù)集部件提供了相應(yīng)的方法用于其中的數(shù)據(jù)維護(hù)。這些 方法如表 。 表 Delphi 用于數(shù)據(jù)維護(hù)的方法 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 方 法 名 功 能 ────────────────────────────── Edit 將數(shù)據(jù)集置為編輯狀態(tài) ────────────────────────────── Append 投寄所有被修改的記錄,將記錄指針移到表中的最后 一條記錄,且將數(shù)據(jù)集置為插入狀態(tài) ────────────────────────────── Insert 投寄所有被修改的記錄將數(shù)據(jù)集置為插入狀態(tài) ────────────────────────────── Post 將插入的新記錄和修改的記錄寫回磁盤上的數(shù)據(jù)庫表, 即投寄,當(dāng)投寄成功時(shí)數(shù)據(jù)集回到瀏覽狀態(tài),若投寄 不成功數(shù)據(jù)集仍然保持原有狀態(tài) ────────────────────────────── Cancel 取消當(dāng)前的操作且將數(shù)據(jù)集置為瀏覽狀態(tài) ────────────────────────────── Delete 刪除當(dāng)前記錄指針?biāo)诘挠涗浨覍?shù)據(jù)集置為瀏覽狀態(tài) ─────────────── ─────────────── AppendRecord 在表的最后插入一條新記錄,記錄的各個(gè)字段值作為 AppendRecord 的參數(shù)傳遞給新記錄 ────────────────────────────── InsertRecord 在當(dāng)前指針?biāo)谟涗浀暮竺娌迦胍粭l新記錄, 記錄的 各個(gè)字段值作為 InsertRecord 的參數(shù)傳遞給新記錄。 ────────────────────────────── SetRecords 修改當(dāng)前記錄,字段名和相應(yīng)的字段值作為 SetRecords 的參數(shù) ━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━ Edt 方法:如果應(yīng)用程序想對(duì)數(shù)據(jù)集中的數(shù)據(jù)記錄進(jìn)行修改,我們必須要將數(shù)據(jù)集設(shè)置成編輯狀態(tài)。調(diào)用數(shù)據(jù)集部件的 Edit 方法便可以將數(shù)據(jù)集置成編輯狀態(tài),當(dāng)數(shù)據(jù)集已經(jīng)處在編輯狀態(tài)時(shí),調(diào)用 Edit 方法不會(huì)產(chǎn)生作用。當(dāng)數(shù)據(jù)集處于編輯狀態(tài)時(shí),移動(dòng)記錄指針或調(diào)用 post 方法都可以將當(dāng)前記錄的修改寫回到磁盤數(shù)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1