tech86
Posts: 2
Joined: Thu Jun 01, 2006 4:47 pm

Comparison of 2 editboxes

Is there a way to compare what is typed in a editbox with another editbox like asking for a password then confirming it. It doesnt seem to compare the values of the 2 editboxes. If anyone could help that would be great.
tech86
Posts: 2
Joined: Thu Jun 01, 2006 4:47 pm

nevermind I figured out how to get it to work.
dbalsbaugh
Posts: 27
Joined: Mon Dec 11, 2006 10:41 pm

Could you share how you got this to work? I am looking to do the same thing.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Each "Edit" control has a property associated with it. To compare the text of two "Edit Box" controls compare the properties associated with the controls like this:

Code: Select all

PROPERTY1 = PROPERTY2
Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dbalsbaugh
Posts: 27
Joined: Mon Dec 11, 2006 10:41 pm

Thanks gigi, that is what I ended up doing. The only downside to this is that I don't get a dialog box telling the user that the passwords are not the same. I just added the condition to the existing NewDialog Published Event on the Next button.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can spawn a dialog to inform the user that the passwords not match and condition this dialog with:

Code: Select all

PROPERTY1 <> PROPERTY2
On how to spawn a dialog when a button is pressed select the button and add a published event like this:

Name: SpawnDialog
Argument: <NewDialog>
Condition: PROPERTY1 <> PROPERTY2

Also we have a tutorial on how to display a dialog conditionally:
http://www.advancedinstaller.com/user-g ... ialog.html

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Feature Requests”