• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

visual basic validation

minendo

Elite Member
I need to set up a line of code that verifies the length of a string is 16 characters, but it will be in the form of an ElseIf statement. What I need to happen is if the string is not 16 characters, a message box needs to appear that says the string not the correct length. So how do I set up a not equal situation?

ElseIf Len(txtAccountNumber.txt) * 16
Then msgbox


What is the command for not equal to?
 
VB 6
If Len(txtAccountNumber.Text) <> 16 Then
'🙁
End If

VB .NET
If txtAccountNumber.Text.Length <> 16 Then
'🙁
End If
 
Back
Top