Autor Beitrag
lord.paddington
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Mi 06.04.05 15:01 
Hallo!

Gibt es in Delphi einen Inkrementier - Befehl? (erhöhe um 1)


Danke


Moderiert von user profile iconraziel: Topic aus VCL (Visual Component Library) verschoben am Mi 06.04.2005 um 15:36

_________________
pfutsch ist hin und hin ist pfutsch
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Mi 06.04.05 15:02 
versuchs damit:
ausblenden Delphi-Quelltext
1:
procedure Inc(var X [ ; N: Longint ] );					


mfg matze

_________________
si tacuisses, philosophus mansisses.
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 06.04.05 15:11 
Jop:
ausblenden Delphi-Quelltext
1:
inc(variable);					

Man kann auch um eine bestimmte Zahl erhöhen lassen:
ausblenden Delphi-Quelltext
1:
inc(variable,zahl);					

Das gegenteil von inc ist übrigens dec.

:wave:
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Mi 06.04.05 15:14 
user profile iconCoder hat folgendes geschrieben:
Jop:
ausblenden Delphi-Quelltext
1:
inc(variable);					

Man kann auch um eine bestimmte Zahl erhöhen lassen:
ausblenden Delphi-Quelltext
1:
inc(variable,zahl);					



Wo ist der unterschied zu meinem post? :roll:

mfg matze

_________________
si tacuisses, philosophus mansisses.
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 06.04.05 15:15 
In meinem ist es schöner :D
Ok, eigentlich hätte auch ein Blick in die Delphi-Hilfe gereicht, hatte aber Lust was zu schreiben. :)


Zuletzt bearbeitet von Coder am Mi 06.04.05 15:17, insgesamt 1-mal bearbeitet
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Mi 06.04.05 15:16 
und meiner ist präziser :wink:

mfg matze

_________________
si tacuisses, philosophus mansisses.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 06.04.05 15:17 
Für Anfänger aber schwieriger zu interpretieren.
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Mi 06.04.05 15:18 
user profile iconjasocul hat folgendes geschrieben:
Für Anfänger aber schwieriger zu interpretieren.


sag ich ja gar nicht :)

mfg matze

_________________
si tacuisses, philosophus mansisses.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 06.04.05 15:19 
Aber irgendwie muss der Counter doch hoch zu kriegen sein, oder? :wink:
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Mi 06.04.05 15:22 
*lol* stimmt auch wieder....

mfg matze

_________________
si tacuisses, philosophus mansisses.
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 06.04.05 15:24 
Und dann auch noch bei einem so einfachen Befehl:
inc(Beitragzähler); :D
zemy
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 207

Win XP Prof.
D7
BeitragVerfasst: Mi 06.04.05 16:54 
Musst du dem Forum nur noch Beibringen, Delphicode auszuführen :D aber währe

ausblenden Delphi-Quelltext
1:
inc(Beitragszähler,1000);					

nich effizienter?

_________________
LifeIsToShortToThinkAboutTheShortness