This document contains code for procedures used to search, filter, and exit from a database table in Delphi. It includes procedures for searching by code or brand, applying a price range filter, canceling the filter, and closing the form. The code uses functions like FindKey, SetRange, ApplyRange, CancelRange, and Refresh to interact with and filter the Table1 database table.
This document contains code for procedures used to search, filter, and exit from a database table in Delphi. It includes procedures for searching by code or brand, applying a price range filter, canceling the filter, and closing the form. The code uses functions like FindKey, SetRange, ApplyRange, CancelRange, and Refresh to interact with and filter the Table1 database table.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
This document contains code for procedures used to search, filter, and exit from a database table in Delphi. It includes procedures for searching by code or brand, applying a price range filter, canceling the filter, and closing the form. The code uses functions like FindKey, SetRange, ApplyRange, CancelRange, and Refresh to interact with and filter the Table1 database table.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
begin if (ekode.Text ='') then exit; Table1.IndexName :=''; if not table1.FindKey ([ekode.Text]) then application.MessageBox ('data tidak ditemukan ',' Informasi',MB_OK or MB_ICONINFORMATION); end;
procedure TForm1.bmerkClick(Sender: TObject);
begin if (emerk.Text ='') then exit; Table1.IndexName :='merek'; if not table1.FindKey ([emerk.Text]) then application.MessageBox ('data tidak ditemukan ',' Informasi',MB_OK or MB_ICONINFORMATION); end;
procedure TForm1.bapplyClick(Sender: TObject);
begin table1.IndexName:='idxhrg'; table1.SetRange([strtofloat(emulai.Text)],[strtofloat(eakhir.Text)]); Table1.ApplyRange ; end;
procedure TForm1.bcancleClick(Sender: TObject);
begin Table1.CancelRange ; Table1.Refresh ; emulai.Text:=''; eakhir.Text:=''; end;