home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 June
/
PCWorld_1998-06_cd.bin
/
software
/
Programy
/
Ozogan
/
DBFDELE.IPS
< prev
next >
Wrap
Text File
|
1998-01-18
|
967b
|
32 lines
PROCEDURE main
VAR
x : integer;
ENDVAR
IF DbfUse("CENIK") then {pokud se otev°ela databßze}
DbfForm(0,0,600,350);
DbfShow;
ConsoleForm(390,15,250,400);
ConsoleShow; ConsoleClear;
WRITE('PoΦet zßznam∙:');
WRITELN(DbfRecCount:6)
DbfSetDeleted(true); {zp°φstupnφ zruÜenΘ zßznamy}
FOR x := 1 to 3
DbfGo(Random(DbfReccount)); {skoΦφ na nßhodn² zßznam}
DbfDelete; {zruÜφ vybran² zßznam}
ENDFOR
DbfGoTop; {skok na zaΦßtek databßze}
WHILE not DbfEof {dokud nenφ konec databßze}
IF DbfDeleted then {pokud zßznam oznaΦen ke zruÜenφ}
DbfRecall; {obnovφme platnost zßznamu}
WRITE('Zßznam ')
WRITE(IntToStr(DbfRecno)+'/'+IntToStr(DbfRecCount));
WRITELN(' obnoven')
ENDIF
DbfSkip(1); {skok na dalÜφ zßznam}
ENDWHILE
ELSE
WRITELN('Nelze, databßze nebyla nalezena')
ENDIF
ENDPROC