2 : 1) SQL , , 1 . 2) , , , , , . . :
- First
Next ,
Last
Prior ,
MoveBy - , - - -: n- n>0, n<0, .
- BOF EOF boolean. . - BOF=true, , . - EOF=true , false . - .
.. BDE 1 :
Begin
If BOF then Prior
Else First; end;
//
DBNavigator - . . :
TDataSource , . ( True ):
property ConfirmDelete: Boolean;
True, ,
:
property Flat: Boolean;
, :
type TNavigateBtn = (nbFirst, nbPrior. nbNext. nbLast.
nblnsert. nbDelete, nbEdit. nbPost.
nbCancel, nbRefresh);
type TButtonSet = set of TNavigateBtn;
property VisibleButtons: TButtonSet;
nb , :
nbFirst . nbPrior . nbNext
nbLast . nbInsert . nbDelete
nbEdit . nbPost
nbCansel . nbRefresh
- Hints. . . String List Editor - Hints -.
:
procedure BtnClick(Index: TNavigateBtn);