|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
syntax for filter in datatable.selectdatatable.select("some filter")? I want do something like this: dim str as string = "men" datatable.Select("colName Like "*" & var & "*") which would allow data like mentor document etc. Thanks. -- moondaddy@newsgroup.nospam If you are using Visual Studio, just click somewhere in the word "select"
(you don't have to select the whole word, just click into it) and press F1. That's the fastest way to learn about any .NET keyword, class, or class memeber. Show quote "moondaddy" <moondaddy@newsgroup.nospam> wrote in message news:e5MjeszJIHA.4272@TK2MSFTNGP05.phx.gbl... > Where can I find documentation for the syntax allowed in the filter used > in datatable.select("some filter")? > > I want do something like this: > > dim str as string = "men" > > datatable.Select("colName Like "*" & var & "*") > > which would allow data like > > mentor > document > etc. > > Thanks. > > -- > moondaddy@newsgroup.nospam > Hello Moondaddy,
According to your description, you want to know what syntax is allowed in DataTable.Select() method. If I misunderstood anything here, please correct me. FilterExpression argument uses the same rules that apply to the DataColumn class's Expression property value for creating filters. Thus, I suggest you may refer to the document for Datacolumn.Expression. You will find syntax what are allowed in FilterExpression in there. http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.expression.a spx [DataColumn.Expression Property] Hope this helps. Please feel free to update here again. If there is anything unclear, we are glad to assist you. Have a great day, Best regards, Wen Yuan Microsoft Online Community Support ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Thanks that was a good reference and I've added it to my bookmarks.
Show quote "WenYuan Wang [MSFT]" <v-wyw***@online.microsoft.com> wrote in message news:RTb8jN2JIHA.5204@TK2MSFTNGHUB02.phx.gbl... > Hello Moondaddy, > > According to your description, you want to know what syntax is allowed in > DataTable.Select() method. If I misunderstood anything here, please > correct > me. > > FilterExpression argument uses the same rules that apply to the DataColumn > class's Expression property value for creating filters. Thus, I suggest > you > may refer to the document for Datacolumn.Expression. You will find syntax > what are allowed in FilterExpression in there. > > http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.expression.a > spx > [DataColumn.Expression Property] > > Hope this helps. Please feel free to update here again. If there is > anything unclear, we are glad to assist you. > > Have a great day, > Best regards, > Wen Yuan > Microsoft Online Community Support > ================================================== > This posting is provided "AS IS" with no warranties, and confers no > rights. > |
|||||||||||||||||||||||