I'M trying to write a script where the drivers license number is alphanumeric and changes with each state.for each state,there might be different combinations like 2alpha+3numeric or 4alpha/numeric+1alpha.how could I set up the conditions and what function can be used?
I'm hoping that I'll get a positive feedback.
How about a Select Case statement. Your variable for your select case would be the state value, e.g., if state = "CA" then strLicNum = AA123". If you use all 50 states, it will be a fairly long Select Case statement, so try to combine like items in your case.
Select Case State
Case "CA", "GA"
strLicNum = AA123
Case "NV", "NY", "MN", "NM"
strLucNum = AAAA1A
strLicNum = "What ever you want"
Automation Team Lead
Rental Quality Assurance