Results 1 to 3 of 3

Thread: [RESOLVED] [Inno Setup Form Designer] - My Password Form

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Resolved [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?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Re: [Inno Setup Form Designer] - My Password Form

    these language is Delphi
    please, i need understand more these if.
    thanks
    VB6 2D Sprite control

    To live is difficult, but we do it.

  3. #3

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    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.
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width