Autor Beitrag
DelphiDelphin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Mi 20.04.05 15:28 
Hi sorry vileicht doofe frage aber wo mus ich das reinschreiben damit dies für die ganze unit übernommen wir im privat berich funzt's net
ausblenden Delphi-Quelltext
1:
k:= inttostr(mediaplayer1.Position div 1000);					



Moderiert von user profile iconChristian S.: Topic aus Sonstiges verschoben am Mi 20.04.2005 um 16:29


Zuletzt bearbeitet von DelphiDelphin am Mi 20.04.05 15:32, insgesamt 1-mal bearbeitet
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Mi 20.04.05 15:30 
Ist das ne Funktion oder Proc?
Was willst du genau?

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
DelphiDelphin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Mi 20.04.05 15:32 
weder noch ne deklaration
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 20.04.05 15:38 
user profile iconDelphiDelphin hat folgendes geschrieben:
weder noch ne deklaration


Das ist keine Deklaration. Eine Deklaration sieht so aus:

ausblenden Delphi-Quelltext
1:
var bla: Integer;					


Das, was du gepostet hast, ist eine Zuweisung.

AXMD
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Mi 20.04.05 15:39 
Wenn du von anderen Units zugreifen willst musst du es im public(=öffentlich) deklarieren.

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
DelphiDelphin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Mi 20.04.05 15:40 
weis ich ich wils in etwa so haben:¨
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
//...............
   BitBtn2: TBitBtn;
    Timer2: TTimer;
    procedure BitBtn2Click(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);
    procedure BitBtn1Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    k: inttostr(mediaplayer1.Position div 1000);
  public

aber funzt net
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 20.04.05 15:41 
user profile iconDelphiDelphin hat folgendes geschrieben:
weis ich ich wils in etwa so haben:¨
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
//...............
   BitBtn2: TBitBtn;
    Timer2: TTimer;
    procedure BitBtn2Click(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);
    procedure BitBtn1Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    k: inttostr(mediaplayer1.Position div 1000);
  public


Und was wird das, wenn's fertig ist? Sieht stark nach provoziertem Compilerfehler aus :twisted:

Tipp: Suche bei Google DELPHI GRUNDLAGEN

AXMD
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 20.04.05 15:42 
Hallo, DelphiDelphin!

Darf ich Dir meinen Crashkurs Delphi ans Herz legen? Ich habe den Eindruck, Du kannst ihn gebrauchen. :-)

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 20.04.05 15:45 
Hi,

entweder du verwirklichst es als Funktion oder als Property. Über beidest solltest du ausreichend informationen finden können. Auf jeden Fall darf es aber nicht im private Bereich deiner Klasse stehen.

Gruß
Klabautermann