Autor Beitrag
Sir.Snyder
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19

Win 2000
D7 Prof
BeitragVerfasst: Fr 25.07.03 12:58 
Hi!
Wie ist der Befehl, dass ich nur mit geraden Zahlen etwas vergleich möchte: z.B.
var x : integer;
begin
If x = geradeZahl then
.....

danke im vorraus
christian
Terra23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 872

Win 8
Delphi 7
BeitragVerfasst: Fr 25.07.03 13:03 
Wenn ich mich nicht irre ist das Mod. Mußt du mal hier im Forum schauen:

Suche in: Delphi-Forum, Delphi-Library MOD

_________________
Hasta La Victoria Siempre
Simon Joker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 236
Erhaltene Danke: 1



BeitragVerfasst: Fr 25.07.03 13:03 
Hi

mache so:
ausblenden Delphi-Quelltext
1:
2:
if x mod 2 = 0 then
  ...
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Fr 25.07.03 13:04 
Benutz einfach
ausblenden Delphi-Quelltext
1:
if x mod 2 = 0 then					


//Edit: Da war jemand schneller

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
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 25.07.03 13:06 
es gibt auch einen extra befehl dafür:
gugg dir odd in der Onlinehilfe an

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)