Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Prism Incompatible Types... (https://www.delphipraxis.net/76165-incompatible-types.html)

daredd 30. Aug 2006 22:10


Incompatible Types...
 
Was ist an diesem code falsch?????


Delphi-Quellcode:
if COMPort.DetailSerialNumber(Ver, Year, Month, Number) <> 0
     then
     begin
        if Ver <> 65 or Year <> 98
     then
        Result := False;
     end;

delphi schreibt mir dann als fehler meldung:

Incompatible Types!!!

omata 30. Aug 2006 22:19

Re: Incompatible Types...
 
Schonmal mit Klammern versucht?

Delphi-Quellcode:
  if (Ver <> 65) or (Year <> 98) then ...
Gruss
Thorsten

daredd 1. Sep 2006 00:25

Re: Incompatible Types...
 
ja danke, die habe ich voll vergessen :lol:


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:52 Uhr.

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