I' not sure how to do this. The code is supposed to validate the user id that is entered so that there is 1 upper case letter, 2 lower case letters and 3 digits,eg Hap123.
What I have tried:
Dim UserId As String
Dim Length As Integer
Dim Format As String
Console.WriteLine("Input your User ID")
UserID=Console.ReadLine
WHILE Length = 6
IF Format = UCASE(Left(UserID,1))& LCASE(MID(UserID,2,2))&INT(RIGHT(UserID,3))
THEN Console.WriteLine("Correct format")
ELSE Console.WriteLine("Wrong format")
ENDIF
ENDWHILE