Solved

string manipulation

Posted on 2006-10-25
6
99 Views
Last Modified: 2010-04-23
Hi

Is there an easy way to make the following case insensitive

 If r.StartsWith(prefixText) Then

thanks
0
Comment
Question by:andieje
  • 3
  • 2
6 Comments
 
LVL 85

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
0
 
LVL 62

Accepted Solution

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

Fernando
0
 

Author Comment

by:andieje
ID: 17811304
Fernando, where have you been :)

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

thanks a lot guys
andrea
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 62

Expert Comment

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

Author Comment

by:andieje
ID: 17812420
I need you back :)
0
 
LVL 62

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now