Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Leerstring überprüfen funtzt nicht (https://www.delphipraxis.net/130493-leerstring-ueberpruefen-funtzt-nicht.html)

shitlord 9. Mär 2009 14:06


Leerstring überprüfen funtzt nicht
 
warum bekomm ich da:
Inkompatible Typen: 'String' und 'Boolean'
Delphi-Quellcode:

 else if foo.Nummer = '' and bar.Nummer = '' then
//todo
.Nummer ist ein variant

DeddyH 9. Mär 2009 14:08

Re: Leerstring überprüfen funtzt nicht
 
Weil Du nicht geklammert hast.
Delphi-Quellcode:
else if (foo.Nummer = '') and (bar.Nummer = '') then
//todo


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