home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 June
/
PCWorld_1998-06_cd.bin
/
software
/
Programy
/
Ozogan
/
DBFFILTR.IPS
< prev
next >
Wrap
Text File
|
1998-01-18
|
890b
|
23 lines
PROCEDURE main
DbfForm(0,0,600,350);
DbfShow;
ConsoleForm(390,15,250,400);
ConsoleShow; ConsoleClear;
IF DbfUse("CENIK") then {pokud se otev°ela databßze}
DbfSetFilter("(CENA/100*(100+DPH))<1000");
{nastavit filtr pokud cena s danφ menÜφ ne₧ 1000 KΦ}
DbfGoTop {skok na zaΦßtek databßze}
WHILE not DbfEof {dokud nenφ konec databßze}
WRITE(DbfReadNum("CENA"):8:2); {vypφÜe p∙vodnφ cenu}
WRITE(" --->");
DbfWriteNum("CENA",DbfReadNum("CENA")*1.1);
{zv²Üenφ ceny o 10 %}
WRITELN(DbfReadNum("CENA"):8:2); {vypφÜe novou cenu}
DbfSkip(1); {skok na dalÜφ zßznam}
ENDWHILE
DbfSetFilter(""); {zruÜit nastaven² filtr}
ELSE
WRITELN('Nelze, databßze nebyla nalezena')
ENDIF
ENDPROC