I am looking for a more efficient way of writing the following code;
'set the case for items in combo box If strMediaType = "cd" Or strMediaType = "Cd" Or strMediaType = "cD" Or strMediaType = "dvd" Or strMediaType = "Dvd" Or strMediaType = "dVd" Or strMediaType = "dvD" Or strMediaType = "DVd" Or strMediaType = "dVD" Then strMediaType = Strings.StrConv(strMediaType, vbUpperCase) Else strMediaType = Strings.StrConv(strMediaType, vbProperCase) End If
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.