Question evaluate string

coogs100

New member
Joined
Aug 1, 2010
Messages
1
Programming Experience
1-3
I'm new to vb.net.
I'm trying to evaluate a lastname and then set a value.
so first two characters of last name btw M-MI would be M1, MJ-MZ would be M2

Any help would be greatly appreciated.
Thanks
 
One of the aims of VB is to read like an English sentence. If you clearly say or, better still, write down what it is that you want to do then you are often halfway, or event further, to writing the code. So, what is it that you want to do? If the name starts with M and is alphabetically less than MJ then set some value to M1, otherwise set the value to M2. That should give you most of what you need to write the code.
 
Back
Top