在VB 2005应用程序中使用通配符搜索 [英] Search using wild card characters in VB 2005 application

查看:91
本文介绍了在VB 2005应用程序中使用通配符搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在vb 2005中使用通配符(例如"*")来搜索特定记录?例如,我要搜索特定客户的详细信息,例如其名字的开头是"R"?结果应包括"Rocky","Ramesh"和"Rani"等名字!

I want to know that how can I able to search for a specific record using wild card characters like ''*'' in vb 2005? As an example I want to search for details of an specific customer such as his first name will begin with ''R''? The result should include the First names as Rocky, Ramesh, Rani e.t.c!

推荐答案

您可以始终使用LINQ.
You can always use LINQ.
<br />
var q = (from c in NamesList<br />
         where Name.StartsWith("R")<br />
         select c)<br />



[ ^ ]也应提供一些示例.



This[^] should provide you with some examples as well.


这篇关于在VB 2005应用程序中使用通配符搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆