티스토리 뷰

Data.DB.TDataSet.Delete

Delphi

procedure Delete;

C++

void __fastcall Delete(void);

Properties

TypeVisibilitySourceUnitParent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DBTDataSet

Description

Deletes the active record / and positions the dataset on the next record.

Call Delete / to remove the active record / from the database. 

If the dataset is inactive, / Delete raises an exception. 

Otherwise, Delete:

    • Verifies that the dataset / is not empty (and raises an exception / if it is).
    • Calls CheckBrowseMode / to post any pending changes / to a prior record / if necessary.
    • Calls the BeforeDelete event handler.
    • Deletes the record.
    • Frees any / buffers allocated / for the record.
    • Puts the dataset into dsBrowse mode.
    • Resynchronizes the dataset / to make the next undeleted record active. 
    • If the record deleted / was the last record in the dataset, / then the previous record / becomes the current record.
    • Calls the AfterDelete event handler.

활성한 레코드를 삭제하고 다음 레코드에서 데이터 세트의 위치를 지정합니다.

Delete를 호출하면 데이터베이스에서 활성한 레코드를 제거합니다.

데이터 세트가 비활성 상태이면 Delete가 예외를 발생시킵니다. 

그렇지 않으면 Delete는 :

  • 데이터 세트가 비어 있지 않은지 확인합니다 (그리고 존재하는 경우 예외를 발생시킵니다).
  • 필요한 경우 이전 레코드에 보류중인 변경 사항을 게시하려면 CheckBrowseMode를 호출합니다.
  • BeforeDelete 이벤트 처리기를 호출합니다.
  • 레코드를 삭제합니다.
  • 레코드에 할당 된 버퍼를 모두 해제합니다.
  • 데이터 세트를 dsBrowse 모드로 전환합니다.
  • 데이터 세트를 다시 동기화하여 삭제되지 않은 다음 레코드를 활성화합니다.
  • 삭제 된 레코드가 데이터 세트의 마지막 레코드 인 경우 이전 레코드가 현재 레코드가됩니다.
  • AfterDelete 이벤트 처리기를 호출합니다.

inactive 미국·영국 [ɪn|ӕktɪv]

1. 활동하지 않는; 활발하지 않은, 소극적인   2. 사용되지 않는   3. 효력이 나타나지 않는

verify(verifies) 미국·영국 [|verɪfaɪ]

1. (진실인지・정확한지) 확인하다   2. 입증하다, (진실이라고・정확하다고) 확인해 주다

pending 미국·영국 [|pendɪŋ]

1. (어떤 일이) 있을 때 까지; …을 기다리는 동안   2. 미결인, 계류 중인   3. 곧 있을, 임박한

necessary 미국식 [|nesəseri]

1. 필요한   2. 필연적인, 불가피한

allocate 미국·영국 [|ӕləkeɪt]

(특정 목적을 위해 공식적으로) 할당하다

put something into something

(어떤 특질을) 더하다

become 미국·영국 [bɪ|kʌm]

1. …(해)지다, …이 되다   2. 알맞다, 적절하다   3. 어울리다, 보기 좋다


출처: http://docwiki.embarcadero.com/Libraries/XE2/en/Data.DB.TDataSet.Delete

'프로그래밍 언어 > Delphi' 카테고리의 다른 글

[Reference] TDataSet.Active  (0) 2016.12.12
[Reference] TDataSet.Refresh  (0) 2016.12.11
[Reference] TDataSet.Append  (0) 2016.12.09
[Reference] TDataSet.Insert  (0) 2016.12.08
[Reference] TDataSet.Cancel  (0) 2016.12.07
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함