Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16:
| var VariableA, VariableB: string; reg:tregistry; begin //bla bla eben Registry öffnen, key usw.
// Um die 2 folgenden Zeilen gehts eigentlich ... if VariableA=reg.ReadString('Eintrag1') and VariableB=reg.readstring('Eintrag2') then
begin //Hier dann eben, wenn beide Ausdrücke true sind ...
end; end; |
VariableA und B wurden beim Programmstart mit den Registryeinträgen ''Eintrag1 und 2'' gefüttert ... Der Text soll nun also überprüfen, ob sich was geändert hat ... ''VariableA=reg.ReadString('Eintrag1')'' gibt ja einen boolschen Wert zurück und die andere Zeile auch ... also wenn Zeile A true ist und (and) Zeile B ebenfalls, soll er die folgenden Zeile ausführen ...
Ich bekomme allerdings immer den Fehler :[Fehler] Unit1.pas(166): Operator ist auf diesen Operandentyp nicht anwendbar
... Wo liegt jetzt mein Fehler ???
Es gibt keine dummen Fragen ... Nur blöde Antworten !!!