![]() |
kleine frage zu "if abfrage"
hiho ich hoffe ihr killt mich jetzt nicht wenn ich son ... frage.
kann mir jemand sagen wieso das nicht funktioniert? if not wwDBEdit_PWkm.text := '0' and not wwDBEdit_PWkm.text := '' then danke [edit=sakura] Personalität eingetragen. Mfg, sakura[/edit] |
Re: kleine frage zu "if abfrage"
Zitat:
Delphi-Quellcode:
...:cat:...
if (not wwDBEdit_PWkm.text = '0') and (not wwDBEdit_PWkm.text = '') then
|
Re: kleine frage zu "if abfrage"
Zitat:
MfG Binärbaum //Edit: Ups, da war wohl jemand schneller |
Re: kleine frage zu "if abfrage"
bei abfragen nur = und nich :=
;) ausserdem klammern um die einzel-abfragen also:
Delphi-Quellcode:
if (not wwDBEdit_PWkm.text = '0') and (not wwDBEdit_PWkm.text = '') then
|
Re: kleine frage zu "if abfrage"
hui ging aber schnell :)
danke vielmals |
DP-Maintenance
Dieses Thema wurde von "sakura" von "Programmieren allgemein" nach "Object-Pascal / Delphi-Language" verschoben.
Ist aber schon eine Delphi-Frage ;) |
Re: kleine frage zu "if abfrage"
hmm geht nicht.
komisch ich frag mal den chef :) |
Re: kleine frage zu "if abfrage"
Da fehlen auch noch ein paar Klammern:
Delphi-Quellcode:
if (not (wwDBEdit_PWkm.text = '0')) and (not (wwDBEdit_PWkm.text = '')) then
|
Re: kleine frage zu "if abfrage"
Zitat:
Evtl. könnte man die Klammerung ändern:
Delphi-Quellcode:
Vielleicht hilft's ja.
if ((not (wwDBEdit_PWkm.text= '0')) and (not (wwDBEdit_PWkm.text= ''))) then ...
MfG Binärbaum |
Re: kleine frage zu "if abfrage"
*g*
das hat mein chef auch gesagt :) danke nochmals |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:46 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