home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 August
/
Chip_1999-08_cd.bin
/
tema
/
Ozogan
/
RUNTIME
/
APLIKACE.EXE
/
ADRESY
/
INDEXY.KL3
< prev
next >
Wrap
Text File
|
1999-06-18
|
1KB
|
54 lines
/////////////////////////////////////////////////////////////
//
// Vytvo°enφ nov²ch index∙
//
/////////////////////////////////////////////////////////////
Program Indexy;
procedure TForm.bbStartClick(Sender: TObject);
begin
Screen.Cursor := crHourglass;
// ADRESY
//-------
dt.Active := False;
dt.DatabaseName := svDATA;
dt.TableName := 'ADRESY.DBF';
dt.Active := True;
if dt.SetExclusive(true) then begin
dt.Active := True;
dt.Pack;
if dt.TagArea('K≤d')=0 then dt.IndexTag('K≤d','UPPER(KOD)');
if dt.TagArea('Nßzev')=0 then dt.IndexTag('Nßzev','UPPER(NAZEV)');
if dt.TagArea('I╚O')=0 then dt.IndexTag('I╚O','ICO');
dt.Reindex;
dt.Active := False;
dt.Exclusive := False;
end
else begin
Screen.Cursor := crDefault;
MessageDlg('Nepoda°ilo se exkluzivn∞ otev°φt soubor '+dt.TableName, mtWarning,[mbOK],0);
Screen.Cursor := crHourglass;
end;
dt.Use('');
// DalÜφ
//------ tady by se indexovaly dalÜφ soubory
Screen.Cursor := crDefault;
MessageDlg('Obnovenφ index∙ bylo ukonΦeno.',mtInformation,[mbOK],0);
Form.Close;
end;
procedure TForm.bbKonecClick(Sender: TObject);
begin
Form.Close;
end;
procedure TForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Screen.Cursor := crDefault;
end;
end.