프로그래밍 언어/Delphi
[Reference] TDataSet.First
얗마
2016. 11. 28. 21:20
Data.DB.TDataSet.First
Delphi
procedure First;
C++
void __fastcall First(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function | public | Data.DB.pas Data.DB.hpp | Data.DB | TDataSet |
Description
Moves to the first record / in the dataset.
Call First / to make the first record / in the dataset active.
First posts any changes to the active record and:
- Clears the record buffers.
- Fetches the first record / and makes it the active record.
- Fetches any additional records required for display, such as those needed to fill out a grid control.
- Sets the Bof property to
true
. - Broadcasts the record change so that data controls and linked detail sets can update.
Note: The TDataSet class / uses internal protected methods / to reposition the active record / and to fetch additional records required for display.
In TDataSet, these internal methods are empty stubs.
Implement these methods in derived classes / to enable the First method to work.
데이터 세트의 첫 번째 레코드로 이동합니다.
First 를 호출하여 데이터 세트의 첫 번째 레코드를 활성화합니다.
First 에서는 활성 레코드에 대한 모든 변경을 배치 하고
- 레코드 버퍼를 지웁니다.
- 첫 번째 레코드를 가져와서 그것을 활성 레코드로 만듭니다.
- 표시에 필요한 추가 기록 (예를 들어, 그리드 컨트롤에 입력에 필요한 레코드 등)을 가져옵니다.
- Bof 속성을 true로 설정합니다.
- 데이터 컨트롤과 링크되어있는 자세한 세트가 내용을 업데이트 할 수 있도록 레코드의 변경을 브로드 캐스트합니다.
주 : TDataSet 클래스는 내부의 protected 메소드를 사용하여 활성 레코드의 위치를 변경하고 표시에 필요한 추가 레코드를 가져옵니다.
TDataSet 에서 이러한 내부 메서드는 비어 있습니다.
파생된 클래스에서 이 메소드를 구현하면 First 메소드가 작동하게됩니다.
1. (어디를 가서) 가지고 오다 2. (특정 가격에) 팔리다
1. 내부의 2. 체내의 3. (단체) 내부의
1. (쓰다 남은 물건의) 토막, (담배) 꽁초; 몽당연필 2. (표・수표 등에서 한 쪽을 떼어 주고) 남은 부분
유래된, 파생된
출처: http://docwiki.embarcadero.com/Libraries/Berlin/en/Data.DB.TDataSet.First