Validating Input

The following code assigns True to the Boolean variable blnFlag if the username strUserName contains valid characters—that is, if it contains only alphabetic characters and is less than 16 characters long:

blnFlag = ValidateInput.IsValidUserName(strUserName)

The next line of code assigns True to the variable blnFlag if the password strPassword is less than or equal to 50 characters long:

blnFlag = ValidateInput.IsValidPassword(strPassword)

The following code assigns True to blnFlag if the first name strFirstName contains valid characters—that is, if it contains only alphabetic characters and is less than 16 characters long:

blnFlag = ValidateInput.IsValidFirstName(strFirstName)

The following code assigns True to blnFlag if the last ...

Get Security for Microsoft® Visual Basic® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.