티스토리 뷰

Data.DB.TDataSet.CheckBrowseMode

Delphi

procedure CheckBrowseMode;

C++

void __fastcall CheckBrowseMode(void);

Properties

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

Description

Automatically posts or cancels / data changes / when the active record changes.

CheckBrowseMode / is used internally / by many dataset methods / to ensure that modifications / to the active record are posted / when a dataset's state is dsEdit, dsInsert, or dsSetKey / and a method switches to a different record.

If State is dsEdit or dsInsert, / CheckBrowseMode / calls UpdateRecord, / and if the Modified property for the dataset is true, / calls Post

If Modified is false, / CheckBrowseMode / calls Cancel.

If State is dsSetKey, / CheckBrowseMode calls Post.

If State is dsInactive, / CheckBrowseMode raises an exception.

If an application uses existing dataset methods, / CheckBrowseMode is always called when necessary, / so there is usually no need to call CheckBrowseMode directly.

Applications that provide custom dataset routines / may need to call CheckBrowseMode / inside those routines / to guarantee that changes are posted / when switching to a different record.


활성한 레코드가 변경되면 데이터 변경 사항을 자동으로 게시하거나 취소합니다.

CheckBrowseMode는 데이터 세트의 상태가 dsEdit, dsInsert 또는 dsSetKey이고 다른 레코드로 전환 할 때 활성한 레코드에 대한 수정이 게시되도록 많은 데이터 세트 메서드에서 내부적으로 사용됩니다.

State가 dsEdit 또는 dsInsert이면 CheckBrowseMode는 UpdateRecord를 호출하고, 데이터 세트의 Modified 속성이 true이면 Post를 호출합니다. 

Modified 가 false이면 CheckBrowseMode는 Cancel을 호출합니다.

State 가 dsSetKey이면 CheckBrowseMode는 Post를 호출합니다.

State 가 dsInactive 인 경우, CheckBrowseMode는 예외를 발생시킵니다.

응용 프로그램에서 기존 데이터 세트 메서드를 사용하는 경우, 필요할 때 CheckBrowseMode 가 항상 호출되므로, 대개 CheckBrowseMode를 직접 호출 할 필요가 없습니다.

사용자 지정 데이터 세트 루틴을 제공하는 응용 프로그램은 다른 레코드로 전환 할 때 변경 내용이 게시되도록 보장하기 위해 해당 루틴 내에서 CheckBrowseMode를 호출해야 할 수 있습니다.


ensure 미국식 [ɪn|ʃʊr]

반드시 …하게 하다, 보장하다

existing 미국·영국 [ɪg|zɪstɪŋ]

기존의, 현재 사용되는

necessary 미국식 [|nesəseri]

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

provide 미국·영국 [prə|vaɪd]

1. 제공하다, 주다   2. 규정하다

guarantee 미국·영국 [|gӕrən|ti:]

1. 굳은 약속, 확약   2. (제품의) 품질 보증서   3. 보장(하는 것)

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

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

[Reference] TDataSet.AfterOpen  (0) 2016.12.21
[Reference] TDataSet.BeforeOpen  (0) 2016.12.20
[Reference] TDataSet.Modified  (0) 2016.12.18
[Reference] TDataSet.State  (0) 2016.12.17
[Reference] TADOQuery.Prepared  (0) 2016.12.16
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
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
글 보관함