Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   "if " aisdruck (https://www.delphipraxis.net/73042-if-aisdruck.html)

Soldier 11. Jul 2006 13:10


"if " aisdruck
 
[delphi]
if a<3000 and b<1000 then
begin
[/deplhi]


kann mir einer sagen, warum das nicht geht?

beim "<" bei b sagt er immer:

"Operator not applicable to this operand type"

kann mir einer helfen?


mfG

KrasserChecker 11. Jul 2006 13:11

Re: "if " aisdruck
 
Versuchs mal mit Klammern:

Delphi-Quellcode:
if (a<3000) and (b<1000) then
begin

Die Muhkuh 11. Jul 2006 13:11

Re: "if " aisdruck
 
Hi,

du musst die einzelnen Ausdrücke einklammern:

Delphi-Quellcode:
if (a < 3000) and (b < 1000) then
begin

end;

Soldier 11. Jul 2006 13:12

Re: "if " aisdruck
 
danke leude :P

echt klasse ;)


mfG

freak4fun 11. Jul 2006 13:13

Re: "if " aisdruck
 
Delphi-Quellcode:
if (a < 3000) and (b < 1000) then
  begin
     ...
  end;
MfG
freak


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:30 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz