Check out the special deal below:

More Deals!


Click here to learn more and make more!


Check out the AllAdvantage FAQ!

Get paid to surf. Make money off the Internet instead of the other way around.

Created on: July 8, 1997
How do I create a simple password verification system?


Is it possible to have an Edit Object, that lets the user type something into it, and have a Button Object that when clicked will signal the application to check whether or not  a certain string was entered?

In other word to I have a user enter a password into the Edit Object and then click on a Button Object. Can the application detect if the password is correct or not? And if it is correct then jump to another Frame, or do something else?

Chris Perry
psychosoft@juno.com



Yes, this is something that is very easily done in Click & Create.

All that it took was an Edit Object, a Button Object, and a two lines of code.
The only trick is that you have to know about the Compare Two General Values. This is one of the most powerful functions in Click & Create. It is a condition that is listed under Special when you right click on the New Condition command. Learn how to use this function and you'll be able to do a whole lot more in Click & Create.

Condition 1: Button Clicked
                  Compare Two General Values:  Edittext$( "Edit Object" ) = "password"
   Under Storyboard Controls
        Jump to frame number 2

Condition 2: Button Clicked
                  Compare Two General Values:  Edittext$( "Edit Object" ) <> "password"
   Under Storyboard Controls
        Jump to frame number 3

I've included the source code for you to download which should help with your understanding.
password.zip (4 KB): Download Click & Create source code for Password Verification System.


This page and all of its contents are Copyright 1997-98 by Christopher Jay Craft.

1