|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Q: select (case insensitive)Hi
I'm using the Select member of a DataTable in vb.net. In the datatable I have a field which holds a string. I want to do something like: Dim name As String = "mike" Dim rows As DataRow() = dt.Select("[Name] = " & name) This returns all rows which have "mike" but not "MIKE" or "Mike". Can anybody tell me how to achieve this? Thanks in advance G .Net wrote:
> Hi Set the DataTable.CaseSensitive property to false.> > I'm using the Select member of a DataTable in vb.net. In the datatable I > have a field which holds a string. I want to do something like: > > Dim name As String = "mike" > Dim rows As DataRow() = dt.Select("[Name] = " & name) > > This returns all rows which have "mike" but not "MIKE" or "Mike". > > Can anybody tell me how to achieve this? > > Thanks in advance -- Tom Shelton Hi Tom
Thanks! Show quoteHide quote "Tom Shelton" <t**@mtogden.com> wrote in message news:1159370137.689002.65570@m7g2000cwm.googlegroups.com... > > G .Net wrote: >> Hi >> >> I'm using the Select member of a DataTable in vb.net. In the datatable I >> have a field which holds a string. I want to do something like: >> >> Dim name As String = "mike" >> Dim rows As DataRow() = dt.Select("[Name] = " & name) >> >> This returns all rows which have "mike" but not "MIKE" or "Mike". >> >> Can anybody tell me how to achieve this? >> >> Thanks in advance > > Set the DataTable.CaseSensitive property to false. > > -- > Tom Shelton >
overflow detection without try-catch
How can I create a Shortcut (with parameters) on a user-desktop with vb.net? how to run the execuatable before windows shutting down Posting login data with HttpWebRequest Redirecting standard output VB Program - CHM help integration Permanent Rectangle on Form. Getting nodes from an XML-document How to re-start application? Button with dropdown style like on a toolbar |
|||||||||||||||||||||||