string manipulation

Hi

Is there an easy way to make the following case insensitive

 If r.StartsWith(prefixText) Then

thanks
andiejeAsked:
Who is Participating?
 
Fernando SotoConnect With a Mentor RetiredCommented:
In VB 2005 you can do it this way
 
       If r.StartsWith(prefixText, StringComparison.InvariantCultureIgnoreCase) Then

Fernando
0
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
You could use:

        If r.ToLower.StartsWith(prefixText.ToLower) Then

        End If
0
 
andiejeAuthor Commented:
Fernando, where have you been :)

I've totally needed you to help me with my processes again!

thanks a lot guys
andrea
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Fernando SotoRetiredCommented:
Hi andrea; I have been around. Glad to have been some help. ;=)
0
 
andiejeAuthor Commented:
I need you back :)
0
 
Fernando SotoRetiredCommented:
Need help with something?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.