private boolean ValidateUser(string name, string pin)
{
boolean UserOK = false;
if (name == "a name we like" & pin == "a number we like")
{
UserOK = true;
}
return UserOK;
}
Then call the method:
boolean IsMyUserID_OK = ValidateUser(userid, pin);
is the basic idea - you need to add the code to figure out if the userid and pin are valid in your case though.
I coded this without the help of the IDE, so the case may be off on some of the declarations.
Cheers,
John.
|