To create the Search button
Step 1
To create the search button, the first thing you need to do is to add the Button in the Form1 and then rename the Caption to Search.
Step 2
Next, just double click the Button to show the Code Explorer Window and then set the Program as followed;
- var
- idno:string;
- find:boolean;
- begin
- idno:=inputbox(' Enter the Stuent No',
- ' Enter the No ','9732001');
- Table1.SetKey;
- Table1.Fields[0].AsString:=idno;
- find:=table1.GotoKey;
- if not find then
- ShowMessage(' No this Record ');
- end;
No comments:
Post a Comment