Autor Beitrag
thorstenf01
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60

Win XP
D5 enterprise
BeitragVerfasst: Fr 11.07.03 12:41 
Hy!

Woran kann es liegen, das der folgende Pascal Programmteil beim compilieren übergangen wird ( keine blaue Zeilenmarkierung)?
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
... 
procedure Ellipse;
begin
      salfa0:=alfaik;
      sh0:=arctan((zik+Hk)/rik)*180/Pi;
      sa:=arctan(Ra/rik)*180/Pi;
      sbo:=arctan((zik+Hk+Ra)/rik)*180/Pi;
      sbo:=sbo-sh0;
      sbu:=arctan((zik+Hk-Ra)/rik)*180/Pi;
      sbu:=sh0-sbu;
end;

procedure Datum(Tag: integer);
var   i, j, k, l, Summe         :integer;
const Monatsende :array[1..12] of Integer=(31,29,31,30,31,30,31,31,30,31,30,31);
      Mon        :array[1..12] of string =('Jan','Feb','M?r','Apr','Mai','Jun',
                                           'Jul','Aug','Sep','Okt','Nov','Dez');

begin
      j:=0;
      repeat j:=j+1;
             Summe:=0;
             for i:=1 to j do Summe:=Summe+Monatsende[i];
             k:=Tag-Summe;
             l:=0;
             if k<=0 then begin
             l:=1;
             Dat:=k+Monatsende[j];
             Monat:=Mon[j]; end;
      until  l=1;
end;
...


Vielen dank im voraus für eure Hilfe...

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 11.07.03 12:46 
Hallo

weil sie nie genutzt werden?
wenn die Proceduren niemals aufgerufen werden erkennt das Delphi.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Phantom1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 390



BeitragVerfasst: Fr 11.07.03 13:43 
@thorstenf01:

ich bin's nochmal, warum hast du jetzt ein neues topic eröffnet?

(Da ist ja die procedure Datum(), ich dachte das war eine pascalprocedure und keine eigene)

ich schlage vor du postet mal den kompletten code und erklärst das problem nochmal etwas genauer.