home *** CD-ROM | disk | FTP | other *** search
- program 1__Programm__Kapital;
-
- {$V-}
- {$F+}
- {$N+}
- {$A-}
-
- uses Syngate, Lay_Pas;
-
- { ---------------------- Include Files ------------------- }
-
- {$I D:\LO\PROG1.COD}
- {$I D:\LO\PROG1.RSC}
-
-
- procedure init_layout_prog_vars;
-
- begin
-
- do_clear_card (Rechenblatt);
-
- menu_flag := 0;
- Menu_Structure := @Menu_Struct_Table;
- data_menu_titles := 0;
- max_menu_width := 0;
- max_menu_height := 0;
-
- end;
-
-
- begin
-
- open_process;
- init_layout_prog_vars;
- initialize_screen (0);
- setup_screen_variables;
-
- set_desktop ($AA,$55,0);
- fill_desktop (0);
-
- zeiteinheitsz_hler := trunc (0);
- { Zeiteinheitszähler=0 }
-
- get_byte_parameters (0, 13, 13, -15, 3, 13, 76);
- set_relative_origin (Dbox_Srow, Dbox_Scol, Dbox_Width,
- Dbox_Height);
- set_refresh_mode (tile);
- open_window (Dbox_Srow, Dbox_Scol, Dbox_Erow, Dbox_Ecol);
- name_window (Dbox_Srow, Dbox_Scol, Dbox_Erow, Dbox_Ecol,
- text_string1, 0);
- { RECHENBLATT }
-
- get_byte_parameters (2, 0, 0, 12, 9, 12, 9);
- set_card_orig (Rechenblatt, Dbox_Srow*$100 + Dbox_Scol);
- get_card_input (1, 0, 0, Rechenblatt, dummy_handle,
- gew_hlt);
- { Rechenblatt ausfüllen }
-
- Rechenblatt.End_Kapital := Rechenblatt.Anfangskapital;
- { Endkapital = Anfangskapital }
-
- while (zeiteinheitsz_hler <
- Rechenblatt.Laufzeit__Monate_) do begin
- { Wdh. für ganze Laufzeit }
-
- Rechenblatt.End_Kapital := Rechenblatt.End_Kapital+
- (Rechenblatt.End_Kapital
- *Rechenblatt.Zinssatz/100);
- { Berechnung End-Kapital }
-
- zeiteinheitsz_hler := trunc (zeiteinheitsz_hler+1);
- { Zeiteinheitszähler + 1 }
-
- end;
-
- get_byte_parameters (2, 0, 0, 20, 36, 20, 36);
- display_variable (Rechenblatt.End_Kapital, 6, 0*$100 + 2,
- Dbox_Srow, Dbox_Scol);
- { Rechenblatt.End_Kapital }
-
- wait (10000);
- { Pause 10000 millisec. }
-
- reset_relative_origin;
- get_byte_parameters (0, 13, 13, -15, 3, 13, 76);
- set_refresh_mode (tile);
- close_window(Dbox_Srow, Dbox_Scol, Dbox_Erow, Dbox_Ecol);
- { RECHENBLATT }
-
- reset_program;
- close_process;
-
- end.