Autor Beitrag
ForzaFCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 80


D6 / D7 Personal
BeitragVerfasst: Fr 21.05.04 07:50 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
begin

IF Combobox1.ItemIndex = 0     // Name auswählen
and 
    Edit1.Text = Ini.ReadString('Sektion2','Passwort',edit1.Text)

then begin 
    Form2.show;

end;
end;

Irgendwas haut da noch nicht so richtig hin aber ich habe kein plan wieso, ist villeicht als Delphi anfänger so!!! könnte mir bitte jemand helfen?


Danke im Voraus!!!

MFG
ForzaFCH

_________________
HANSA ROSTOCK DU SOLLST STRAHLEN..... *sing* Für immer und ewig FC hansa Rostock!
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 21.05.04 08:05 
Hallo,

Du musst die einzelnen Bedingungen in Klammern setzen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
if (Combobox1.ItemIndex=0) and  (Edit1.Text=Ini.ReadString('Sektion2','Passwort',edit1.Text)) then 
begin  
  Form2.show; 
end;

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)