?
Solved

string manipulation

Posted on 2006-10-25
6
Medium Priority
?
116 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 86

Assisted Solution

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

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

        End If
0
 
LVL 64

Accepted Solution

by:
Fernando Soto earned 500 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 64

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 64

Expert Comment

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

862 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