Autor Beitrag
Jelox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mi 23.03.05 15:14 
hi ich hab mal versucht n programm für urlaubstage zu erstellen. so weit so gut. läuft eigentlich auch alles. nur seht mal:
dreambaby.dr.funpic.de/urlaubstage.JPG

ich möchte gerne, dass die (noch vorhandenen) Urlaubstage ausgerechnet werden.
geht das irgendwie, dass ich mit der tabelle rechne???

am besten wäre, wenn man urlaubstage - verbrauchte rechnen kann. geht das irgednwie????

schonmal n dickes dankeschön :)



Moderiert von user profile iconUGrohne: Bild durch Link ersetzt, einmal draufklicken und aktualisieren, da Provider externe Verlinkung nicht erlaubt
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Do 24.03.05 15:31 
user profile iconJelox hat folgendes geschrieben:
hi ich hab mal versucht n programm für urlaubstage zu erstellen. so weit so gut.

Hallo. Was ist bitte ein "Programm für Urlaubstage"?? :shock: Versuch's mal n bisschen zu erklären. ;)

user profile iconJelox hat folgendes geschrieben:
läuft eigentlich auch alles. nur seht mal: dreambaby.dr.funpic.de/urlaubstage.JPG

Hmm.. Man erkennt nicht so viel vom Programm. Code wäre besser. ;)

user profile iconJelox hat folgendes geschrieben:
ich möchte gerne, dass die (noch vorhandenen) Urlaubstage ausgerechnet werden.
geht das irgendwie, dass ich mit der tabelle rechne???

Das sollte gehen, nur was hat eine Tabelle damit zu tun??? :gruebel:

user profile iconJelox hat folgendes geschrieben:
am besten wäre, wenn man urlaubstage - verbrauchte rechnen kann. geht das irgednwie????

Jo, so stell ich mir das vor. Wie auch sonst?? :D

user profile iconJelox hat folgendes geschrieben:
schonmal n dickes dankeschön :)

Bitte sehr. :rofl: :lol:
Jelox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Do 24.03.05 18:42 
die antwort ist cool :)

naja aber ehrlich gesagt, ich weiß nich was ich an code hier posten soll.
ist nämlich fast nur eine zeile. viel braucht man da ja auch nicht machen.

aber ich kann ja mal sagen, wie ich mir das vorstelle.

DBText2:= DBText1 - DBText3
Vorhandenen = Urlaubstage-Verbrauchte

einzigstes problem ist jetzt, dass ich nicht wirklich weiß, wie das funktionieren soll.
wäre wirklich nett, wenn mir einer sagen könnt, was ich da eingeben muss, um mit den Werten aus der tabelle zu rechnen :)
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Do 24.03.05 21:16 
Ich versteh' leider immer noch nicht wo da die Tabelle mit reinpasst. :( Meinst du einfach Eingabefelder, so wie du schon zwei auf deinem Formular hast?? :gruebel:

Probier mal zwei von diesen Edit-Komponenten und einen Button auf ein Formular zu setzen. Dann klickst du auf den Button doppelt drauf und schreibst da wo jetzt der Cursor im Quellcodetext blinkt das da rein:
ausblenden Delphi-Quelltext
1:
ShowMessage('Es sind noch '+IntToStr(StrToInt(Edit1.Text)-StrToInt(Edit2.Text))+' Urlaubstage da.');					

Und startest dann mal das Programm. Ins erste Feld schreibst du rein, wie viele Urlaubstage instgesamt da sind; ins zweite wie viele verbraucht worden sind. ;)
Jelox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Sa 26.03.05 23:54 
ja. das hab ich sowieso erstmal auf eis gelegt ;)
aber trotzdem danke für die hilfe, wenns mal wieder so weit ist, frag ich einfach wieder ;)
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 27.03.05 13:42 
Mhmh... Ist das denn überhaupt das was du willst?? ;)