GivenRandy
asked on
StartsWith Select Case
Is there a slick way to use the StartsWith in combination with a Select/Case? Something like this (which doesn't compile):
Select Case TextBox1.Text.ToUpper
Case String.StartsWith("AB")
' ...
End Select
Instead of a bunch of:
If TextBox1.Text.ToUpper.Star tsWith("AB ") Then
ElseIf .. ("CD")
and so on.
Select Case TextBox1.Text.ToUpper
Case String.StartsWith("AB")
' ...
End Select
Instead of a bunch of:
If TextBox1.Text.ToUpper.Star
ElseIf .. ("CD")
and so on.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER