Created
February 28, 2016 07:27
-
-
Save bervukas/f9a7c295fe8e822d5419 to your computer and use it in GitHub Desktop.
A better approach to using Magic Values in VBA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Const PASSWORD_LENGTH = 7 | |
Sub SetPassword(password As String) | |
If (Len(password) > PASSWORD_LENGTH) Then | |
' Display error | |
End If | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment