Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi OR Operator - warum funktioniert die verknüpfung nicht?HAb (https://www.delphipraxis.net/8927-operator-warum-funktioniert-die-verknuepfung-nicht-hab.html)

chris_82 15. Sep 2003 14:46


OR Operator - warum funktioniert die verknüpfung nicht?HAb
 
Warum funktioniert diese OR verknüpfung nicht?

Delphi-Quellcode:
if pos_quelldok2.ChildNodes[1].ChildNodes['pLApr'].ChildNodes[z_pApr].ChildNodes['pLZUA'].ChildNodes[z_pZIA].AttributeNodes['IR'].Text=wert_att_I or pos_quelldok2.ChildNodes[1].ChildNodes['pLApr'].ChildNodes[z_pApr].ChildNodes['pLZUA'].AttributeNodes['All'].Text='Ja' then

Es kommt die Fehlermeldung Operator auf Operandetyp nicht anwendbar! Aber warum??


Tut mir leid wenn ich einige Leute in diesem Forum mit solchen Anfängerfragen belästige.

Christian Seehase 15. Sep 2003 14:50

Re: OR Operator - warum funktioniert die verknüpfung nicht?H
 
Moin Chris,

Code:
if [color=red][b]([/b][/color]pos_quelldok2.ChildNodes[1].ChildNodes['pLApr'].ChildNodes[z_pApr].ChildNodes['pLZUA'].ChildNodes[z_pZIA].AttributeNodes['IR'].Text=wert_att_I[color=red][b])[/b][/color] or [color=red][b]([/b][/color]pos_quelldok2.ChildNodes[1].ChildNodes['pLApr'].ChildNodes[z_pApr].ChildNodes['pLZUA'].AttributeNodes['All'].Text='Ja'[color=red][b])[/b][/color] then
Setz mal die einzelnen Ausdrücke in Klammern. Sollte helfen.

chris_82 15. Sep 2003 14:51

Re: OR Operator - warum funktioniert die verknüpfung nicht?H
 
Ja genau danke das war es!


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:21 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