Autor Beitrag
cromos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Fr 03.10.03 12:02 
Hallo,

warum bekomme ich einen Fehler bei:
ausblenden Delphi-Quelltext
1:
if txtPaket.Text= '' or pos(' ',txtPaket.Text)<> 0 then					


Fehler:
Zitat:
[Fehler] Unit2.pas(40): Inkompatible Typen: 'String' und 'Integer'

Ich möchte eine Textfeld gleichzeitig auf Nullstring und vorhandensein von Leerzeichen überprüfen.

Gruss
Cromos
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 03.10.03 12:10 
du hast die klammern vergessen. So gehts:

ausblenden Delphi-Quelltext
1:
if (txtPaket.Text= ''or (pos(' ',txtPaket.Text)<> 0then					
cromos Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Sa 04.10.03 17:40 
Achso.
Danke

Gruss
Cromos