No matter right or wrong input, all show "user name or password error!"
Don't know where the code out of the question
CodePudding user response:
The Name and Password are int variable?CodePudding user response:
Should be your variable is not binding, or binding errors,And even if the binding is no problem, do you have in this writing is 123, as long as the user name can login successful
If ((Name==123) & amp; & (the Password==123))
//success
The else
//user name or password error
CodePudding user response:
Controls have no corresponding with variableCodePudding user response:
123?This is what kind of?
CodePudding user response:
Nine times out of ten is an error in the variable bindings, you print the Name value TRACE and have a lookCodePudding user response:
First of all, you have a logical problem. When the name==123, don't have to verify the password...Second, if your name is cstrings type, it should be the if (name==TEXT (" 123 "))
The name is type int is the if (name==123)
CodePudding user response:
There is still a long way...