Autor Beitrag
rob87
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Mo 03.09.07 10:15 
Hallo,

wie kann ich ob abfragen, ob eine Wertzuweisung aus einer anderen Tabelle geklappt hat bzw. ob ein String einen Inhalt hat oder nicht.

Also irgendwie: If Variable ist ohne Wert (also hex00) dann mache ...


Zuletzt bearbeitet von rob87 am Mo 03.09.07 10:20, insgesamt 1-mal bearbeitet
Calculon
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 676

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: Mo 03.09.07 10:19 
ausblenden Delphi-Quelltext
1:
2:
3:
var str: string
[..]
if str <> '' then ... // wenn str ungleich leerer String dann...
Wraith
Hält's aus hier
Beiträge: 12

Win XP
Delphi 6
BeitragVerfasst: Mo 03.09.07 10:27 
besser wäre:
ausblenden Quelltext
1:
if Trim(str) = '' then....					

So fällt man nicht auf Leerzeichen oder Steuerzeichen rein ;)
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Mo 03.09.07 10:30 
wunbderbar. danke. reicht mir.