![]() |
operatortype nicht anwendbar!?
habe grad mal wieder nen kleines problem und ich weiß auch nicht so recht wie ich die suchmaschiene quälen soll um zum richtigen ergebnis zukommen...
was ist hierran bitte falsch:
Delphi-Quellcode:
if CommandEdit.Text = 'cls' or 'CLS' then begin
CommandMemo.Clear; CommandEdit.Clear; exit; end; |
Re: operatortype nicht anwendbar!?
|
Re: operatortype nicht anwendbar!?
Das ist in Delphi das Problem der Operatorvorrangigkeit. Ich hab selbst erst ein paar Tage gebraucht, bis ich das rausgefunden habe.
Delphi-Quellcode:
if lowercase(commandedit1.text)='cls' then //mach irgendwas...
|
Re: operatortype nicht anwendbar!?
danke funtz an upper and lowercase dachte ich auch schon. ich wollte es aber so habe danke nochmal.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:20 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