Autor Beitrag
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: Do 24.07.03 15:47 
Ich habe mal wieder n Greenhorn Problem:

ausblenden Delphi-Quelltext
1:
2:
DefDirectory := SuchenInCmbBox.Text;
    if DefDirectory = ('Wählen Sie ein Verzeichniss'or (''then ...


Es taucht folgende Fehlermeldung auf:
Operator ist auf diesen Operandentyp nicht anwendbar

Hä? Ich dachte man könnte das so Abfragen....

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
teebee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 109


D6 Prof
BeitragVerfasst: Do 24.07.03 16:13 
Nee, geht so nicht.

Entweder
ausblenden Delphi-Quelltext
1:
If (DefDirectory='blabla'Or (DefDirectory='soso'Then ...					

oder
ausblenden Delphi-Quelltext
1:
If DefDirectory In ['blabla','soso'Then ...					


Viel Erfolg, teebee
Cruiser23 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: Do 24.07.03 17:58 
teebee hat folgendes geschrieben:
If (DefDirectory='blabla') Or (DefDirectory='soso') Then ...

Ahh....
Danke!

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 24.07.03 21:27 
Hallo!

Darf ich Dir dieses Tutorial ans Herz legen?

MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".