home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 June
/
PCWorld_1998-06_cd.bin
/
software
/
Programy
/
Ozogan
/
ZISK.IPS
< prev
next >
Wrap
Text File
|
1997-10-13
|
2KB
|
50 lines
PROCEDURE main
VAR
X : integer
ENDVAR
SpreadInit(17,4)
SpreadShow;
SpreadRow( 1); SpreadCol(2); SpreadText("ZISK FIKTIVNI FIRMY");
SpreadRow( 2); SpreadCol(1); SpreadText("M∞sφc")
SpreadCol( 2); SpreadText("P°φjem");
SpreadCol( 3); SpreadText("Vydej");
SpreadCol( 4); SpreadText("Zisk");
SpreadRow( 3); SpreadCol(1); SpreadText("=====================================");
SpreadRow( 4); SpreadCol(1); SpreadText("Leden");
SpreadCol( 4); SpreadFormula("SUM(B4-C4)");
SpreadRow( 5); SpreadCol(1); SpreadText("┌nor");
SpreadCol( 4); SpreadFormula("SUM(B5-C5)");
SpreadRow( 6); SpreadCol(1); SpreadText("B°ezen");
SpreadCol( 4); SpreadFormula("SUM(B6-C6)");
SpreadRow( 7); SpreadCol(1); SpreadText("Duben");
SpreadCol( 4); SpreadFormula("SUM(B7-C7)");
SpreadRow( 8); SpreadCol(1); SpreadText("Kv∞ten");
SpreadCol( 4); SpreadFormula("SUM(B8-C8)");
SpreadRow( 9); SpreadCol(1); SpreadText("╚erven");
SpreadCol( 4); SpreadFormula("SUM(B9-C9)");
SpreadRow(10); SpreadCol(1); SpreadText("╚ervenec");
SpreadCol( 4); SpreadFormula("SUM(B10-C10)");
SpreadRow(11); SpreadCol(1); SpreadText("Srpen");
SpreadCol( 4); SpreadFormula("SUM(B11-C11)");
SpreadRow(12); SpreadCol(1); SpreadText("Zß°φ");
SpreadCol( 4); SpreadFormula("SUM(B12-C12)");
SpreadRow(13); SpreadCol(1); SpreadText("╪φjen");
SpreadCol( 4); SpreadFormula("SUM(B13-C13)");
SpreadRow(14); SpreadCol(1); SpreadText("Listopad");
SpreadCol( 4); SpreadFormula("SUM(B14-C14)");
SpreadRow(15); SpreadCol(1); SpreadText("Prosinec");
SpreadCol( 4); SpreadFormula("SUM(B15-C15)");
FOR X := 4 TO 15;
SpreadRow(X);
SpreadCol(2); SpreadNumber(Random(100));
SpreadCol(3); SpreadNumber(Random(100));
ENDFOR
SpreadRow(16); SpreadCol(1); SpreadText("=====================================");
SpreadRow(17); SpreadCol(1); SpreadText("SouΦet");
SpreadCol( 2); SpreadFormula("SUM(B4:B15)");
SpreadCol( 3); SpreadFormula("SUM(C4:C15)");
SpreadCol( 4); SpreadFormula("SUM(D4:D15)");
SpreadRecalc;
MessageBox("RoΦnφ zisk firmy je: "+IntTostr(SpreadGetNumber),"V²sledek",0);
ENDPROC