|
-
Nov 7th, 2010, 02:35 PM
#1
Thread Starter
PowerPoster
[RESOLVED] [Inno Setup Form Designer] - My Password Form
i have these IF statement that gives me an error:
Code:
If Senha1.text=Password1 and Senha2.text=Password2 and Senha3.text=Password3 and Senha4.text=Password4 and Senha5.text=Password5 and Senha6.text=Password6 then
begin
Result:=True
else
MsgBox('Incorrect password!!!', mbCriticalError, MB_OK);
Senha1.text:=''
Senha2.text:=''
Senha3.text:=''
Senha4.text:=''
Senha5.text:=''
Senha6.text:=''
WizardForm.ActiveControl:=Senha1;
end
what isn't right in my if?
-
Nov 13th, 2010, 09:55 AM
#2
Thread Starter
PowerPoster
Re: [Inno Setup Form Designer] - My Password Form
these language is Delphi
please, i need understand more these if.
thanks
-
Nov 15th, 2010, 02:51 PM
#3
Thread Starter
PowerPoster
Re: [Inno Setup Form Designer] - My Password Form
i have search more and i found what isn't right. every conditions must are between the parenteses:
Code:
If (Senha1.text=Password1) and (Senha2.text=Password2) and (Senha3.text=Password3) and (Senha4.text=Password4) and (Senha5.text=Password5) and (Senha6.text=Password6) then
begin
Result:=True;
end
else
begin
MsgBox('Incorrect password!!!', mbCriticalError, MB_OK);
Senha1.text:=''
Senha2.text:=''
Senha3.text:=''
Senha4.text:=''
Senha5.text:=''
Senha6.text:=''
WizardForm.ActiveControl:=Senha1;
end;
tip: the last end keyword must have the ";" for close the if.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|