string manipulation

Posted on 2006-10-25
Last Modified: 2010-04-23

Is there an easy way to make the following case insensitive

 If r.StartsWith(prefixText) Then

Question by:andieje
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 125 total points
ID: 17805049
You could use:

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

        End If
LVL 63

Accepted Solution

Fernando Soto earned 125 total points
ID: 17805313
In VB 2005 you can do it this way
       If r.StartsWith(prefixText, StringComparison.InvariantCultureIgnoreCase) Then


Author Comment

ID: 17811304
Fernando, where have you been :)

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

thanks a lot guys
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

LVL 63

Expert Comment

by:Fernando Soto
ID: 17811542
Hi andrea; I have been around. Glad to have been some help. ;=)

Author Comment

ID: 17812420
I need you back :)
LVL 63

Expert Comment

by:Fernando Soto
ID: 17812482
Need help with something?

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to repeat the data 4 41
Create a Dropdown list with sub group 10 39 Excel VSTO Add-in version compatability 2 34
Excel Web Add-in Where is Visual Basic used 9 69
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question