I have to put all dbnavigator functions into buttons
ex:
button1 does the same like nbdelete, and button2 does the same as nb insert, and so on...
thax for advices...
For each buttons OnClick event, enter the specific code. For example, if you are using a table which is hooked upto a DBGrid via a Datasource, you do something along the lines of :-
Code:
Table1.Next; //Go Forward One Record
Table1.Prior; //Go Back back one record
Table1.First; //Go to the first record in the table
Table1.Last; //Go to the last record in the table
To delete a record, the table needs to be in edit mode, so you would need something like :-
Code:
Table1.Edit;
Table1.Delete;
There plenty on this simple sort of setup in the Delphi help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.